Files
vault/.hooks/pre-push
2019-04-16 13:50:49 -04:00

19 lines
253 B
Bash
Executable File

#!/bin/sh
remote="$1"
if [ "$remote" = "enterprise" ]; then
exit 0
fi
if [ "$remote" = "ent" ]; then
exit 0
fi
if [ -f command/version_ent.go ]; then
echo "Found enterprise version file while pushing to oss remote"
exit 1
fi
exit 0