Exit script if no branch supplied

This commit is contained in:
2023-02-06 21:55:31 +01:00
parent dcdea6b580
commit 8b5f2bffa8

View File

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