Update mm-scripts.sh

This commit is contained in:
2023-07-10 22:19:57 -05:00
parent edd862c2a6
commit 3604cd3f42

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 -rn`; do
for bakfile in `find ${BACKUPDIR} -name "${fcheck}.*.tgz" -type f -printf "%f\n" | sort -n`; do
fname=${bakfile##*/}
fdate=${fname#*.}; fdate=${fdate%.*}
rdates[${f}]="${fdate}"