mirror of
https://github.com/ryantm/agenix.git
synced 2024-12-22 15:48:30 +03:00
Do not set DEFAULT_DECRYPT in function edit
Edit is called multiple times during rekey fixes #272
This commit is contained in:
parent
f6291c5935
commit
2b11774452
1 changed files with 1 additions and 2 deletions
|
@ -151,9 +151,8 @@ function edit {
|
|||
|
||||
CLEARTEXT_DIR=$(@mktempBin@ -d)
|
||||
CLEARTEXT_FILE="$CLEARTEXT_DIR/$(basename "$FILE")"
|
||||
DEFAULT_DECRYPT+=(-o "$CLEARTEXT_FILE")
|
||||
|
||||
decrypt "$FILE" "$KEYS" || exit 1
|
||||
decrypt "$FILE" "$KEYS" >"$CLEARTEXT_FILE" || exit 1
|
||||
|
||||
[ ! -f "$CLEARTEXT_FILE" ] || cp "$CLEARTEXT_FILE" "$CLEARTEXT_FILE.before"
|
||||
|
||||
|
|
Loading…
Reference in a new issue