Mounting backup drive
This commit is contained in:
parent
a5daaa17ef
commit
83bb146026
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue