Exit script if no branch supplied

This commit is contained in:
LordMathis 2023-02-06 21:55:31 +01:00
parent dcdea6b580
commit 8b5f2bffa8
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@
if [ $# -eq 0 ]
then
echo "Git branch name missing"
exit 1;
fi
echo ".dotfiles" >> $HOME/.gitignore