1
1
mirror of https://github.com/ryantm/agenix.git synced 2024-10-05 18:47:18 +03:00

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

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)