Docs: Improve logging in example automation script

* add a final info entry for successful completion
This commit is contained in:
Greg Grossmeier 2018-12-21 09:54:58 -08:00 committed by Thomas Waldmann
parent 75dc085e57
commit ac174e89b4
1 changed files with 7 additions and 9 deletions

View File

@ -219,14 +219,12 @@ backed up and that the ``prune`` command is keeping and deleting the correct bac
# use highest exit code as global exit code
global_exit=$(( backup_exit > prune_exit ? backup_exit : prune_exit ))
if [ ${global_exit} -eq 1 ];
then
info "Backup and/or Prune finished with a warning"
fi
if [ ${global_exit} -gt 1 ];
then
info "Backup and/or Prune finished with an error"
if [ ${global_exit} -eq 0 ]; then
info "Backup and Prune finished successfully"
elif [ ${global_exit} -eq 1 ]; then
info "Backup and/or Prune finished with warnings"
else
info "Backup and/or Prune finished with errors"
fi
exit ${global_exit}