Update mm-scripts.sh

This commit is contained in:
2023-07-10 20:46:48 -05:00
parent c7bb6059c9
commit a83292b62c

View File

@@ -1180,7 +1180,7 @@ 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
[ ${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}"