From 7c2625857037a1029e59910bcefb22ea4c505809 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 10 Jul 2023 20:47:03 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index f8b56bb..61c1e55 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -1180,7 +1180,8 @@ SERVICERESTORE(){ fname=${bakfile##*/} fdate=${fname#*.}; fdate=${fdate%.*} IFS='-'; read -a f_date <<< "${fdate}"; unset IFS - [ ${f_date[3]} -gt 12 ] && hr=`expr ${f_date[3]} - 12`; ma=pm || hr=${f_date[3]}; ma=am;; [ ${hr} -lt 10 ] && hr=" ${hr}" + [ ${f_date[3]} -gt 12 ] && hr=`expr ${f_date[3]} - 12`; ma=pm || hr=${f_date[3]}; ma=am + [ ${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}"