From a5aed73ae87adfa502374222c47bf8c124a00799 Mon Sep 17 00:00:00 2001 From: verisgit <18733413+verisgit@users.noreply.github.com> Date: Mon, 11 Sep 2023 02:42:39 +0800 Subject: [PATCH] Update run-mariabackup.sh See https://github.com/koalaman/shellcheck/wiki/SC2115 --- run-mariabackup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run-mariabackup.sh b/run-mariabackup.sh index 1a66a4d..45dd97b 100644 --- a/run-mariabackup.sh +++ b/run-mariabackup.sh @@ -158,8 +158,8 @@ echo "Cleaning up old backups (older than $MINS minutes) and temporary files" for DEL in `find $BASEBACKDIR -mindepth 1 -maxdepth 1 -type d -mmin +$MINS -printf "%P\n"` do echo "deleting $DEL" - rm -rf $BASEBACKDIR/$DEL - rm -rf $INCRBACKDIR/$DEL + rm -rf ${BASEBACKDIR:?}/$DEL + rm -rf ${BASEBACKDIR:?}/$DEL done SPENT=$((`date +%s` - $START))