Skip to content

Instantly share code, notes, and snippets.

@pcn
Created May 30, 2017 18:14
Show Gist options
  • Select an option

  • Save pcn/b937ed1a85d3d7f6b2fd09acd76fa77c to your computer and use it in GitHub Desktop.

Select an option

Save pcn/b937ed1a85d3d7f6b2fd09acd76fa77c to your computer and use it in GitHub Desktop.
git pre-commit hook for using fac
#!/bin/sh
which fac
if [ $? -eq 1 ] ; then
exit 0 ; # fac isn't installed, don't try to invoke it
fi
set -ev
fac -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment