Mounting backup drive

This commit is contained in:
Bob Mottram 2016-10-20 16:50:16 +01:00
parent a5daaa17ef
commit 83bb146026
1 changed files with 5 additions and 1 deletions

View File

@ -118,7 +118,11 @@ function backup_to_friends_servers {
function backup_mount_drive {
if [ $1 ]; then
USB_DRIVE=/dev/${1}1
if [[ "$1" == "/dev/"* ]]; then
USB_DRIVE=$1
else
USB_DRIVE=/dev/${1}1
fi
fi
# get the admin user