diff --git a/scripts/git_clang-format_hook.sh b/scripts/git_clang-format_hook.sh index fd3b83ba8..63fb6f571 100755 --- a/scripts/git_clang-format_hook.sh +++ b/scripts/git_clang-format_hook.sh @@ -43,11 +43,11 @@ check_clang_format() { else echo "SETUP ERROR: no git-clang-format executable found, or it is not executable" echo "$help" - exit 1 + return 1 fi } -check_clang_format || $(apt-get update; apt-get install -y clang-format) +check_clang_format || (apt-get update; apt-get install -y clang-format) readonly out=$(git clang-format --style=file -v)