template/script/hooks/pre-commit in penchant-0.0.1 vs template/script/hooks/pre-commit in penchant-0.0.2
- old
+ new
@@ -1,9 +1,9 @@
#!/bin/bash
OLD_GIT_DIR=$GIT_DIR
-if [ $(penchant gemfile-env) != "remote" ]; then
+if [ "$(penchant gemfile-env)" != "remote" ]; then
unset GIT_DIR
penchant gemfile remote
GIT_DIR=$OLD_GIT_DIR
git add Gemfile*
fi