Skip to content

Commit

Permalink
feat: remove empty newlines in keys from jq query
Browse files Browse the repository at this point in the history
  • Loading branch information
timhae committed Oct 10, 2023
1 parent daf42cb commit 6e126fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/agenix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function cleanup {
trap "cleanup" 0 2 3 15

function keys {
(@nixInstantiate@ --json --eval --strict -E "(let rules = import $RULES; in rules.\"$FILE\".publicKeys)" | @jqBin@ -r .[]) || exit 1
(@nixInstantiate@ --json --eval --strict -E "(let rules = import $RULES; in rules.\"$FILE\".publicKeys)" | @jqBin@ -r 'map(rtrimstr("\n"))[]') || exit 1
}

function decrypt {
Expand Down

0 comments on commit 6e126fe

Please sign in to comment.