From 021dd2056d386ed4051977604d23407adc779624 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 10 Jul 2023 20:50:44 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 5b88f22..31790f8 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -1171,7 +1171,13 @@ 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}"