#!/bin/sh
# Automagically generated by metapak, do not change in place.
# Your changes would be loose on the next npm install run.

if [ "$NODE_ENV" != "cli" ] ; then
  if grep -q '^[0-9]\+.[0-9]\+.[0-9]\+$' "$1" ; then
    exit 0;
  else
    echo "Please commit with \`npm run cz -- (usual commit args)\`"
    echo "To bypass commitizen add \`NODE_ENV=cli\` to your command"
    echo "You may want to set an alias: \`alias gicz='npm run cz -- '\`"
    exit 1;
  fi
fi