From d13f69b1948fd52961df6db1568521a8d79960df Mon Sep 17 00:00:00 2001 From: Frank Bischof Date: Wed, 21 Feb 2024 11:50:25 +0100 Subject: [PATCH] Added working folder --- crypter.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crypter.sh b/crypter.sh index a324ffe..795cd18 100755 --- a/crypter.sh +++ b/crypter.sh @@ -16,8 +16,12 @@ else fi # Check if keys are set -if [ ! -f keys ]; then echo "KEYS=\"-des-ede3-cbc -pbkdf2\"" > keys; fi -source keys +if [ ! -f ~/.crypter/keys ] +then + mkdir -p ~/.crypter + echo "KEYS=\"-des-ede3-cbc -pbkdf2\"" > keys +fi +source ~/.crypter/keys # Check method case "$1" in