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:
Samuele Facenda 2023-11-15 18:29:09 +01:00 committed by Ryan Mulligan
parent 93cec0ce6e
commit 9d3b37a117

View file

@ -115,7 +115,7 @@ function cleanup {
trap "cleanup" 0 2 3 15 trap "cleanup" 0 2 3 15
function keys { 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 { function decrypt {