mirror of
https://github.com/sunknudsen/privacy-guides.git
synced 2025-02-23 17:43:56 +00:00
Escaped $ and dry-principle
Bugfix restore.sh, that it mount correctly. Added missing escape characters Use $mount_point instead of hardcoded path to open the backuped data in finder.
This commit is contained in:
parent
882a6240c0
commit
7ae3f0b962
@ -230,7 +230,7 @@ if [ "\$(find "\$mount_point/Versioning" -type f -ctime +90)" != "" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
open /Volumes/Backup
|
open "\$mount_point"
|
||||||
|
|
||||||
printf "Inspect backup and press enter"
|
printf "Inspect backup and press enter"
|
||||||
|
|
||||||
@ -304,7 +304,7 @@ trap dismount ERR INT
|
|||||||
volume_path="$BACKUP_VOLUME_PATH"
|
volume_path="$BACKUP_VOLUME_PATH"
|
||||||
mount_point="/Volumes/Backup"
|
mount_point="/Volumes/Backup"
|
||||||
|
|
||||||
veracrypt --text --mount --mount-options "readonly" --pim "0" --keyfiles "" --protect-hidden "no" "$volume_path" "$mount_point"
|
veracrypt --text --mount --mount-options "readonly" --pim "0" --keyfiles "" --protect-hidden "no" "\$volume_path" "\$mount_point"
|
||||||
|
|
||||||
open "\$mount_point"
|
open "\$mount_point"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user