Update file run_before_01-decrypt-age-key.tmpl
This commit is contained in:
parent
c675ee3fe7
commit
1f22dbd2fb
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@ if [ ! -f "${XDG_CONFIG_HOME}/age/chezmoi.txt" ]; then
|
|||
rm -f "$ENCRYPTED_FILE"
|
||||
FALLBACK_FILENAME="$(echo "$ENCRYPTED_FILE" | sed 's/encrypted_/encrypted-fallback_/')"
|
||||
if [ -f "$FALLBACK_FILENAME" ]; then
|
||||
NEW_FALLBACK_FILENAME="$(echo "$ENCRYPTED_FILE" | sed 's/encrypted-fallback_//')"
|
||||
cp "$FALLBACK_FILENAME" "$NEW_FALLBACK_FILENAME"
|
||||
logg info 'Substituting encrypted-file fallback for `'"$ENCRYPTED_FILE"'`'
|
||||
cp -f "$FALLBACK_FILENAME" "$(echo "$ENCRYPTED_FILE" | sed 's/encrypted_//')"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue