]> gitweb.fluxo.info Git - rhatto/dotfiles/git.git/commitdiff
Adding --about option to puppet hook
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 6 Apr 2014 00:11:52 +0000 (21:11 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 6 Apr 2014 00:11:52 +0000 (21:11 -0300)
git_hooks.dot.link/pre-commit/puppet

index a8f37fb73839ae24c4e89a6c74a99f946be13fa4..6b6e8f873f4127a1474d8202ba8d96978446c879 100755 (executable)
@@ -9,6 +9,11 @@
 syntax_errors=0
 error_msg=$(mktemp /tmp/error_msg.XXXXXX)
 
+if [ "$1" = '--about' ]; then
+  echo "Check puppet files for syntax errors."
+  exit
+fi
+
 if git rev-parse --quiet --verify HEAD > /dev/null
 then
     against=HEAD