fix a typo: $mkdir => $ssh mkdir

This commit is contained in:
Wael Nasreddine
2017-04-28 17:03:22 -07:00
committed by GitHub
parent 2997b80981
commit 00735c07b4

View File

@@ -242,7 +242,7 @@ for x in $selected_configs; do
read -r -p "Enter name of directory to store backups, relative to $selected_mnt (to be created if not existing): " mybackupdir
printf "This will be the initial backup for snapper configuration '%s' to this disk. This could take awhile.\n" "$x"
BACKUPDIR="$selected_mnt/$mybackupdir"
$mkdir -p -m700 "$BACKUPDIR"
$ssh mkdir -p -m700 "$BACKUPDIR"
else
mybackupdir=$(snapper -c root list -t single | awk -F"|" '/'"$selected_uuid"'/ {print $5}' | awk -F "," '/backupdir/ {print $1}' | awk -F"=" '{print $2}')
BACKUPDIR="$selected_mnt/$mybackupdir"