templates/hooks/automatic in pre-commit-0.20.0 vs templates/hooks/automatic in pre-commit-0.21.0
- old
+ new
@@ -10,12 +10,12 @@
#
cmd=`git config pre-commit.ruby 2>/dev/null`
if test -n "${cmd}"
then true
-elif which rvm > /dev/null
+elif which rvm >/dev/null 2>/dev/null
then cmd="rvm default do ruby"
-elif which rbenv > /dev/null
+elif which rbenv >/dev/null 2>/dev/null
then cmd="rbenv exec ruby"
else cmd="ruby"
fi
export rvm_silence_path_mismatch_check_flag=1