mirror of https://github.com/ryantm/agenix.git
feat: remove empty newlines in keys from jq query
This commit is contained in:
parent
daf42cb35b
commit
6e126fe6ce
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue