mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-26 17:11:13 +02:00
`$?` in bash is wonky. When you evaluate an expression in an `if` statement the `$?` variable is only set the actual value in blocks scoped in the statement. Therefore, since we rely on it in synchronize-repos we have to evaluate the rest of the function in a scope of that statement. Signed-off-by: Ryan Cragun <me@ryan.ec>