Remove output from install_hooks script The output was confusing users if the script ran successfully or not. So it just runs silently now. If there is an error, then the commands producing them will output to stderror. Change-Id: Id12e95117d3421968549c24b2741bc859d1fcb8b
diff --git a/install_hooks.sh b/install_hooks.sh index 681e1a1..10463c4 100755 --- a/install_hooks.sh +++ b/install_hooks.sh
@@ -20,18 +20,7 @@ if [ "$hookConfigExists" -eq "0" ]; then git config --unset-all hook.${hook}.command git config --add hook.${hook}.command "${dir}/${hook}" - # There should be a single hook per line and it should point to the - # git-hooks repository. - git hook list "${hook}" else cp ${dir}/${hook} ${githookdir}/${hook} fi done - -if [ "$hookConfigExists" -eq "0" ]; then - echo "If a single command is listed per hook, then this script was succesful." - echo "Checks will be run at pre-submit." -else - echo "The 'git hook' command is not available on this device." - echo "The hooks will be copied to ${githookdir}, but will not automatically remain up-to-date with the git-hooks repository" -done