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