Update mm-scripts.sh

This commit is contained in:
2023-07-10 20:50:44 -05:00
parent 960ec86a86
commit 021dd2056d

View File

@@ -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}"