UNPKG

468 BPlain TextView Raw
1#!/bin/sh
2# Automagically generated by metapak, do not change in place.
3# Your changes would be loose on the next npm install run.
4
5if [ "$NODE_ENV" != "cli" ] ; then
6 if grep -q '^[0-9]\+.[0-9]\+.[0-9]\+$' "$1" ; then
7 exit 0;
8 else
9 echo "Please commit with \`npm run cz -- (usual commit args)\`"
10 echo "To bypass commitizen add \`NODE_ENV=cli\` to your command"
11 echo "You may want to set an alias: \`alias gicz='npm run cz -- '\`"
12 exit 1;
13 fi
14fi
\No newline at end of file