mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-25 02:58:30 +03:00
fix: allow for newlines in keys
This commit is contained in:
parent
1381a759b2
commit
2c1d1fb134
1 changed files with 3 additions and 1 deletions
|
@ -171,7 +171,9 @@ function edit {
|
||||||
ENCRYPT=()
|
ENCRYPT=()
|
||||||
while IFS= read -r key
|
while IFS= read -r key
|
||||||
do
|
do
|
||||||
|
if [ -n "$key" ]; then
|
||||||
ENCRYPT+=(--recipient "$key")
|
ENCRYPT+=(--recipient "$key")
|
||||||
|
fi
|
||||||
done <<< "$KEYS"
|
done <<< "$KEYS"
|
||||||
|
|
||||||
REENCRYPTED_DIR=$(@mktempBin@ -d)
|
REENCRYPTED_DIR=$(@mktempBin@ -d)
|
||||||
|
|
Loading…
Reference in a new issue