From 4ff960d3c518684ea4bbe4f8c628c3d425262652 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 15 Feb 2020 23:33:03 -0600 Subject: [PATCH] Update mysqlbu-scripts.sh --- mysqlbu-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysqlbu-scripts.sh b/mysqlbu-scripts.sh index bf01edb..8da9ee3 100755 --- a/mysqlbu-scripts.sh +++ b/mysqlbu-scripts.sh @@ -315,7 +315,7 @@ case $1 in echo -e "${idsCL[Yellow]}Storage space used by all backups - ${bsz} ${idsCL[Default]}" echo -e "${idsCL[LightYellow]}-------------------------------------------------${idsCL[Default]}" for day in $BACKUP_PATH/* ; do - if [ "${day}" != "latest" ]; then + if [ "${day}" != *"latest"* ]; then tdt=`sed 's/.*\///' <<< $day` bsz=`du -sh ${day} | awk '{print $1}'` echo -e "${idsBG[Blue]}${idsCL[White]}-> `date -d"${tdt}" +"%a, %B %d, %Y"` - ${bsz} ${idsCL[Default]}${idsBG[Default]}"