From 9cc0a7a834912301dd04de0b2ae22049629b1235 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 10 Jul 2023 20:53:22 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 4a495ae..5719409 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -1171,14 +1171,7 @@ SERVICERESTORE(){ fulldate=$(date -r ${BACKUPDIR}/${fcheck}-full.tgz "+%y-%m-%d-%H-%M-%S") IFS='-'; read -a full_date <<< "${fulldate}"; unset IFS - if [ ${full_date[3]} -gt 12 ]; then - hr=`expr ${full_date[3]} - 12` - ma=pm - else - hr=${full_date[3]} - ma=am - fi - [ ${hr} -lt 10 ] && hr=" ${hr}" + if [ ${full_date[3]} -gt 12 ]; then hr=`expr ${full_date[3]} - 12`; ma=pm; else hr=${full_date[3]}; ma=am; fi; [ ${hr} -lt 10 ] && hr=" ${hr}" fulldate="${full_date[1]}/${full_date[2]}/${full_date[0]} @ ${hr}:${full_date[4]}${ma}" echo -e "[1] ${fulldate} - Full Backup ${fname}" @@ -1188,7 +1181,6 @@ SERVICERESTORE(){ fdate=${fname#*.}; fdate=${fdate%.*} IFS='-'; read -a f_date <<< "${fdate}"; unset IFS if [ ${f_date[3]} -gt 12 ]; then hr=`expr ${f_date[3]} - 12`; ma=pm; else hr=${f_date[3]}; ma=am; fi; [ ${hr} -lt 10 ] && hr=" ${hr}" - fdate="${f_date[1]}/${f_date[2]}/${f_date[0]} @ ${hr}:${f_date[4]}${ma}" echo -e "[${f}] ${fdate} - ${fname}"