open-vault/.hooks/pre-push

15 lines
207 B
Plaintext
Raw Normal View History

2017-09-04 23:16:11 +00:00
#!/bin/sh
remote="$1"
2017-09-04 23:20:39 +00:00
if [ "$remote" = "enterprise" ]; then
2017-09-04 23:16:11 +00:00
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