Skip to content
Snippets Groups Projects
Verified Commit c225001b authored by Levente Polyak's avatar Levente Polyak :rocket:
Browse files

borg: avoid missing directory error duo to double delete

We force delete in the signal handler as a graceful script execution
already deletes the file. This way we avoid any errors being wrongly
printed.
parent 9f1e1c92
No related branches found
No related tags found
1 merge request!435borg: allow out of place calls
......@@ -6,7 +6,7 @@ shopt -s extglob
OFFSITE_HOST=ch-s012.rsync.net
decrypted_gpg=$(mktemp arch-infrastructure-borg-XXXXXXXXX)
trap "rm \"${decrypted_gpg}\"" EXIT
trap "rm -f \"${decrypted_gpg}\"" EXIT
[[ "$*" =~ $OFFSITE_HOST ]] && is_offsite=true || is_offsite=false
# Find matching key
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment