fix: allow for newlines in keys

This commit is contained in:
Ellis Gibbons 2024-04-12 17:50:07 -04:00
parent 1381a759b2
commit 2c1d1fb134
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -171,7 +171,9 @@ function edit {
ENCRYPT=()
while IFS= read -r key
do
ENCRYPT+=(--recipient "$key")
if [ -n "$key" ]; then
ENCRYPT+=(--recipient "$key")
fi
done <<< "$KEYS"
REENCRYPTED_DIR=$(@mktempBin@ -d)