diff options
Diffstat (limited to 'aux/workflow')
-rwxr-xr-x | aux/workflow/dist.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/aux/workflow/dist.sh b/aux/workflow/dist.sh index 69c0173..a8ec82f 100755 --- a/aux/workflow/dist.sh +++ b/aux/workflow/dist.sh @@ -42,6 +42,12 @@ if [ -z "${PROJECT_UC:-}" ]; then PROJECT_UC="$PROJECT" fi + +if [ "$(git rev-parse --abbrev-ref HEAD)" != 'main' ]; then + echo 'Not on branch "main".' >&2 + exit 1 +fi + if git show "$VVERSION" 1>/dev/null 2>/dev/null; then echo "Version '$VVERSION' already exists." >&2 exit 1 |