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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user