ligo/vendors/tezos-modded/scripts/check_patch.sh
2019-05-27 11:18:48 +02:00

23 lines
322 B
Bash
Executable File

#! /bin/sh
set -e
if [ $1 != "zeronet" ] && [ $1 != "alphanet" ] ; then
echo Ignored
exit 0
fi
if git log | grep "net: change economic constants" >/dev/null 2>&1 ; then
echo OK
exit 0
fi
cat <<EOF
The branch $1 should include the constant patch.
Please run './scripts/apply-patch.sh $1'.
EOF
exit 1