From 91caaafae2ed8a05f7b92b0678deb4cd186b7ebf Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 15 Feb 2020 23:31:36 -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 af1494d..bf01edb 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}" != "${BACKUP_PATH}/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]}"