Use set -e in case fetching the passphrase fails
parent
1a7da418ba
commit
a9f068f237
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
echo "[+] Finding latest snapshot..."
|
echo "[+] Finding latest snapshot..."
|
||||||
latest_snapshot=$(ls /media/storage/backup/snapshots | sort | tail -n1)
|
latest_snapshot=$(ls /media/storage/backup/snapshots | sort | tail -n1)
|
||||||
passphrase=$(rage -d -i /media/storage/backup/static-passphrase-key /dev/shm/backup-passphrase)
|
passphrase=$(rage -d -i /media/storage/backup/static-passphrase-key /dev/shm/backup-passphrase)
|
||||||
|
|
Loading…
Reference in New Issue