From f5156ef14cd747b0c70524cbe79248985941109e Mon Sep 17 00:00:00 2001 From: rjaeckel Date: Sun, 31 Jan 2016 23:17:49 +0100 Subject: [PATCH] missing user parameter in filepath --- ocdec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocdec.sh b/ocdec.sh index 3ba919c..1d67ea7 100755 --- a/ocdec.sh +++ b/ocdec.sh @@ -137,7 +137,7 @@ function decryptFile() { iv=$(echo -n "$iv" | od -An -tx1 | tr -dc '[:xdigit:]' ) # decode chunk openssl enc -AES-256-CFB -d -nosalt -base64 -A -K $decFileKeyContentHEX -iv $iv -in <(echo "$payload") - done <<<`sed -r 's/^HBEGIN:.+:HEND-*//' <"$encFilePath"` # pipe the encrypted file without head into the loop + done <<<`sed -r 's/^HBEGIN:.+:HEND-*//' <"${USER}/$encFilePath"` # pipe the encrypted file without head into the loop # --- Decrypt the file --- }