From 894269ec77aa2e15e932d3f284cebfe510bd5cdc Mon Sep 17 00:00:00 2001 From: Djan <> Date: Sun, 11 Apr 2021 10:16:19 +0200 Subject: [PATCH] add 'export' before BORG_PASSPHRASE --- borgaliasandfunctions.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/borgaliasandfunctions.txt b/borgaliasandfunctions.txt index 9d914c8..964327b 100644 --- a/borgaliasandfunctions.txt +++ b/borgaliasandfunctions.txt @@ -311,7 +311,7 @@ function bobadeleter { sed -i 's/^/#borg delete -v .::/' $file sed -i '1s/^/\n/' $file - sed -i '1s/^/BORG_PASSPHRASE=\"\"\n/' $file + sed -i '1s/^/export BORG_PASSPHRASE=\"\"\n/' $file sed -i '1s/^/#Quick and dirty fix for repo with passphrase\n/' $file sed -i '1s/^/\n/' $file sed -i '1s/^/#Watch out you'\''re doing, there won'\''t be other confirmation\n/' $file @@ -339,7 +339,7 @@ function bobagrepdeleter { sed -i 's/^/#borg delete -v .::/' $file sed -i '1s/^/\n/' $file - sed -i '1s/^/BORG_PASSPHRASE=\"\"\n/' $file + sed -i '1s/^/export BORG_PASSPHRASE=\"\"\n/' $file sed -i '1s/^/#Quick and dirty fix for repo with passphrase\n/' $file sed -i '1s/^/\n/' $file sed -i '1s/^/#Watch out you'\''re doing, there won'\''t be other confirmation.\n/' $file @@ -382,7 +382,7 @@ function bobarenamer { sed -i '1s/^/\n/' $script sed -i '1s/^/\n/' $script - sed -i '1s/^/BORG_PASSPHRASE=\"\"\n/' $script + sed -i '1s/^/export BORG_PASSPHRASE=\"\"\n/' $script sed -i '1s/^/#Quick and dirty fix for repo with passphrase\n/' $script sed -i '1s/^/\n/' $script sed -i '1s/^/#Modifications in this file will be applied\, comment all to cancel\.\n/' $script