From b1c4fcb349e6d8fa2772e96c80549648cce3d9a9 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 8 Oct 2024 16:19:06 -0700 Subject: [PATCH] prevent running without target version --- bin/publish.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/publish.sh b/bin/publish.sh index c7df309..94c7dc0 100755 --- a/bin/publish.sh +++ b/bin/publish.sh @@ -1,5 +1,10 @@ #!/usr/bin/env bash +if [[ "$1" == "" ]]; then + echo "Usage: $0 " + exit 1 +fi + echo "Bumping to version $1" rm -Rf dist 2>/dev/null