new_release argument checking
new_release should check the number of arguments before attempting to do anything.
This commit is contained in:
parent
49d7326816
commit
06153b6c13
|
@ -1,5 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ $# != 1]
|
||||||
|
then
|
||||||
|
echo "Usage: scripts/new_release BRANCH_NAME"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
NAME=$1
|
NAME=$1
|
||||||
echo "Creating new release: $NAME"
|
echo "Creating new release: $NAME"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue