From 93caf1f6cddb5d6fa49b3d1c6f500b9e1dab9f67 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 14 Jul 2011 21:15:29 -0400 Subject: [PATCH] i know bash...show me... --- template/script/hooks/pre-commit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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