new_release argument checking

new_release should check the number of arguments before attempting to do
anything.
This commit is contained in:
Bryan Schumaker 2010-11-05 18:45:20 -04:00
parent 26b8ae2fb3
commit 9c20388b85
1 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,11 @@
#!/bin/bash
if [ $# != 1]
then
echo "Usage: scripts/new_release BRANCH_NAME"
exit 1
fi
NAME=$1
echo "Creating new release: $NAME"