diff --git a/bin/update b/bin/update index 6db3664..269c5b1 100755 --- a/bin/update +++ b/bin/update @@ -1,11 +1,17 @@ #!/bin/bash mrconf=$(readlink -f .mrconfig) mrtrust="${HOME}/.mrtrust" if ! grep -q "$mrconf" "$mrtrust" &> /dev/null ; then echo "I: mr repository not found in ${mrtrust}, adding it." echo "$mrconf" >> "$mrtrust" fi +if ! which pre-commit &> /dev/null ; then + echo "The pre-commit command is required, please install it before" + echo "running this command. See README.md for more information." + exit 1 +fi + git pull mr -j 4 update