mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-22 09:40:47 +03:00
Merge pull request #221 from CobaltCause/edit-mkdir-p
create leading directories if they don't exist
This commit is contained in:
commit
6cb7cd66c2
1 changed files with 3 additions and 1 deletions
|
@ -181,7 +181,9 @@ function edit {
|
|||
|
||||
@ageBin@ "${ENCRYPT[@]}" <"$CLEARTEXT_FILE" || exit 1
|
||||
|
||||
mv -f "$REENCRYPTED_FILE" "$1"
|
||||
mkdir -p "$(dirname "$FILE")"
|
||||
|
||||
mv -f "$REENCRYPTED_FILE" "$FILE"
|
||||
}
|
||||
|
||||
function rekey {
|
||||
|
|
Loading…
Reference in a new issue