Skip to content

Commit

Permalink
Added extra safeguard
Browse files Browse the repository at this point in the history
  • Loading branch information
kobus-v-schoor committed Mar 24, 2016
1 parent d64d82a commit a85367c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dotgit
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ OPTIONS:

function safeguards
{
if [ "$REPO" == "$HOME" ]; then
echo "You shouldn't run this in your home folder, make a seperate folder for your dotfiles"
exit
fi

if [ ! -e "$REPO/filelist" ]; then
echo "Filelist not found. Aborting..."
exit;
Expand Down

0 comments on commit a85367c

Please sign in to comment.