Skip to content

Commit

Permalink
fix: allow for newlines in keys
Browse files Browse the repository at this point in the history
  • Loading branch information
spectre256 committed Apr 12, 2024
1 parent 1381a75 commit 2c1d1fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/agenix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c1d1fb

Please sign in to comment.