open-nomad/dev/hooks/pre-push

15 lines
208 B
Plaintext
Raw Normal View History

#!/bin/sh
2017-08-21 03:45:00 +00:00
remote="$1"
if [ "$remote" == "enterprise" ]; then
exit 0
fi
if [ -f version/version_ent.go ]; then
echo "Found enterprise version file while pushing to oss remote"
exit 1
fi
exit 0