We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4ffdef commit fb29aacCopy full SHA for fb29aac
release.sh
@@ -1,5 +1,11 @@
1
#!/bin/sh
2
3
+# ensure that we have at least one argument conforming to semver
4
+if [ $# -ne 1 ] || ! echo $1 | grep -qE "^[0-9]+\.[0-9]+\.[0-9]+$"; then
5
+ echo "Usage: $0 <version>"
6
+ exit 1
7
+fi
8
+
9
# ensure we are on the master branch otherwise exit
10
if [ $(git rev-parse --abbrev-ref HEAD) != "master" ]; then
11
echo "Not on master branch, exiting"
0 commit comments