Skip to content

Commit a640029

Browse files
author
Jacopo Beschi
committed
Guard agains nil $VERSION
1 parent 46f4d96 commit a640029

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/release

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
VERSION=$1
44

5+
if [ -z "$VERSION" ]; then
6+
echo "Error: VERSION argument required"
7+
echo "Usage: $0 VERSION"
8+
exit 1
9+
fi
10+
511
printf "module ActionNativePush\n VERSION = \"$VERSION\"\nend\n" > ./lib/action_native_push/version.rb
612
bundle
713
git add Gemfile.lock lib/action_native_push/version.rb

0 commit comments

Comments
 (0)