mirror of https://github.com/ryantm/agenix.git
Compare commits
4 Commits
d31b9bd2fe
...
e1247c361a
Author | SHA1 | Date |
---|---|---|
James Taranto | e1247c361a | |
Ryan Mulligan | 24a7ea3905 | |
Ellis Gibbons | 2c1d1fb134 | |
James Taranto | e2ad357a97 |
|
@ -171,7 +171,9 @@ function edit {
|
||||||
ENCRYPT=()
|
ENCRYPT=()
|
||||||
while IFS= read -r key
|
while IFS= read -r key
|
||||||
do
|
do
|
||||||
ENCRYPT+=(--recipient "$key")
|
if [ -n "$key" ]; then
|
||||||
|
ENCRYPT+=(--recipient "$key")
|
||||||
|
fi
|
||||||
done <<< "$KEYS"
|
done <<< "$KEYS"
|
||||||
|
|
||||||
REENCRYPTED_DIR=$(@mktempBin@ -d)
|
REENCRYPTED_DIR=$(@mktempBin@ -d)
|
||||||
|
@ -187,7 +189,7 @@ function edit {
|
||||||
}
|
}
|
||||||
|
|
||||||
function rekey {
|
function rekey {
|
||||||
FILES=$( (@nixInstantiate@ --json --eval -E "(let rules = import $RULES; in builtins.attrNames rules)" | @jqBin@ -r .[]) || exit 1)
|
FILES=$( (@nixInstantiate@ --json --eval --strict -E "(let rules = import $RULES; in builtins.attrNames rules)" | @jqBin@ -r .[]) || exit 1)
|
||||||
|
|
||||||
for FILE in $FILES
|
for FILE in $FILES
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in New Issue