Skip to content

Commit

Permalink
Merge pull request #256 from spectre256/main
Browse files Browse the repository at this point in the history
fix: allow for newlines in keys
  • Loading branch information
ryantm authored Apr 26, 2024
2 parents 1381a75 + 2c1d1fb commit 24a7ea3
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 24a7ea3

Please sign in to comment.