mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-25 11:08:30 +03:00
fix: update keys functions in agenix.sh
The functions was always called with `$FILE` as first argument, but inside the argument is ignored. This change doesn' have any impact, but can solve problems caused by the keys function called with an argument different from `$FILE`
This commit is contained in:
parent
93cec0ce6e
commit
9d3b37a117
1 changed files with 1 additions and 1 deletions
|
@ -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.\"$1\".publicKeys)" | @jqBin@ -r .[]) || exit 1
|
||||
}
|
||||
|
||||
function decrypt {
|
||||
|
|
Loading…
Reference in a new issue