Skip to content

Commit

Permalink
Added home message
Browse files Browse the repository at this point in the history
Lets users just backup to their home directory for easy access.
  • Loading branch information
akmijares committed Jul 31, 2020
1 parent 4549c71 commit 8625b5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ if [ $EUID != 0 ]; then
fi

# Asks for dir and check if it exists.
read -p "Enter full dir of where the backups will be located: " backupdir
echo "Note: This will be in your home directory"
read -p "Enter the folder name of where the backups will be located: " backupdir

# Checks and creates dir if needed
[ ! -d $HOME/"$backupdir" ] && mkdir -p $HOME/"$backupdir"
Expand Down

0 comments on commit 8625b5a

Please sign in to comment.