Exit script if no branch supplied
This commit is contained in:
parent
dcdea6b580
commit
8b5f2bffa8
|
@ -3,6 +3,7 @@
|
||||||
if [ $# -eq 0 ]
|
if [ $# -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "Git branch name missing"
|
echo "Git branch name missing"
|
||||||
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ".dotfiles" >> $HOME/.gitignore
|
echo ".dotfiles" >> $HOME/.gitignore
|
||||||
|
|
Loading…
Reference in New Issue