mirror of
https://github.com/ryantm/agenix.git
synced 2024-09-11 14:25:49 +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
@ -181,7 +181,9 @@ function edit {
|
|||||||
|
|
||||||
@ageBin@ "${ENCRYPT[@]}" <"$CLEARTEXT_FILE" || exit 1
|
@ageBin@ "${ENCRYPT[@]}" <"$CLEARTEXT_FILE" || exit 1
|
||||||
|
|
||||||
mv -f "$REENCRYPTED_FILE" "$1"
|
mkdir -p "$(dirname "$FILE")"
|
||||||
|
|
||||||
|
mv -f "$REENCRYPTED_FILE" "$FILE"
|
||||||
}
|
}
|
||||||
|
|
||||||
function rekey {
|
function rekey {
|
||||||
|
Loading…
Reference in New Issue
Block a user