missing user parameter in filepath

This commit is contained in:
rjaeckel 2016-01-31 23:17:49 +01:00
parent 6839809335
commit f5156ef14c

View File

@ -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 ---
}