dsnap-sync: be verbose when cleaning up Temporary directory

- interactive feedback if requested via verbosity level >= 2

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2018-12-29 17:34:23 +01:00
parent d30b621ef9
commit 9c78720898

View File

@@ -3113,8 +3113,11 @@ run_backup
# cleanup
if [ -d $TMPDIR ]; then
if [ $verbose -ge 2 ]; then
printf "${MAGENTA}Cleanup temporary directory ${GREEN}'%s'${NO_COLOR}\n" \
$TMPDIR
fi
rm -rf $TMPDIR || die "Failed to cleanup temporary directory '%s'\n" "$TMPDIR"
#printf "${RED}TODO: ${NO_COLOR}Will remove $TMPDIR}"
fi
printf "${BLUE}Backup run completed!${NO_COLOR}\n"