Reorder debug messages

This commit is contained in:
Jeremy Gardais 2022-02-07 15:07:53 +01:00
parent 1b6946edc3
commit 03c713d836
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 8 additions and 6 deletions

View File

@ -67,6 +67,11 @@ error_message() { # {{{
main() { # {{{
debug_message "main \
ARGS=${ARGS}
env=$(env)"
# If backup is complete {{{
if [ "${phase}" = "backup-end" ]; then
## Get TARGET's file extension
@ -76,7 +81,7 @@ main() { # {{{
## hardlink TARGET archive to LATEST
debug_message "hardlink TARGET archive (${target_archive}) to \
LATEST (${latest_archive})." >> "${temp_log_file}"
LATEST (${latest_archive})."
ln --force "${target_archive}" "${latest_archive}"
fi
# }}}
@ -88,15 +93,12 @@ LATEST (${latest_archive})." >> "${temp_log_file}"
## hardlink TARGET log to LATEST
debug_message "hardlink TARGET logs (${logfile}) to \
LATEST (${latest_log})." >> "${temp_log_file}"
LATEST (${latest_log})."
ln --force "${logfile}" "${latest_log}"
fi
# }}}
debug_message "main \
ARGS=${ARGS}
env=$(env)
---"
debug_message "---"
}
# }}}