diff --git a/template/script/hooks/pre-commit b/template/script/hooks/pre-commit index d87a011..4ef8a0b 100755 --- a/template/script/hooks/pre-commit +++ b/template/script/hooks/pre-commit @@ -4,5 +4,6 @@ unset GIT_DIR script/gemfile remote bundle exec rake -if [ $? -ne 0 ]; then exit $?; fi +R=$? +if [ $R -ne 0 ]; then exit $R; fi