scripts

Scripts
git clone git://git.wimdupont.com/scripts.git
Log | Files | Refs | LICENSE

commit 786d50cf3d044207b7bc47c8c3387d3c8d0fcdca
parent 5df8d13523e253c95a136eea1d4fb3f77613aed5
Author: Wim Dupont <wim@wimdupont.com>
Date:   Sat, 25 Feb 2023 11:54:40 +0100

shred temporary unencrypted tar files instead of rm

Diffstat:
Mbin/decr | 2+-
Mbin/encr | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/decr b/bin/decr @@ -6,4 +6,4 @@ tar=$(echo $1 | sed 's/.gpg//g') tar -xf "$tar" -rm -v "$tar" +shred -u "$tar" diff --git a/bin/encr b/bin/encr @@ -25,7 +25,7 @@ fi tar -cf "$file".tar "$file" #Ensures deletion of unencrypted tar file on exit -trap 'rm -v "$file".tar' EXIT +trap 'shred -u "$file".tar' EXIT if [ $asymmetric -eq 0 ]; then if [ $disable_default_pwd -eq 0 ] && [ -f "$sym_pwd" ]; then