Update mm-scripts.sh

This commit is contained in:
2023-07-10 22:19:41 -05:00
parent 8693c29f9f
commit edd862c2a6

View File

@@ -1198,7 +1198,7 @@ SERVICERESTORE(){
f=2; declare -a rdates
# for bakfile in ${BACKUPDIR}/${fcheck}.*.tgz; do
for bakfile in `find ${BACKUPDIR} -name "${fcheck}.*.tgz" -type f -printf "%f\n" | sort -n`; do
for bakfile in `find ${BACKUPDIR} -name "${fcheck}.*.tgz" -type f -printf "%f\n" | sort -rn`; do
fname=${bakfile##*/}
fdate=${fname#*.}; fdate=${fdate%.*}
rdates[${f}]="${fdate}"