Explorar el Código

fix(details): fix to show last backup (#3348)

Christian hace 5 años
padre
commit
5fc8953bdc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lgsm/functions/info_distro.sh

+ 1 - 1
lgsm/functions/info_distro.sh

@@ -214,7 +214,7 @@ if [ -d "${backupdir}" ]; then
 		# number of backups.
 		backupcount=$(find "${backupdir}"/*.tar.gz | wc -l)
 		# most recent backup.
-		lastbackup=$(ls -1tr "${backupdir}"/*.tar.gz | head -1)
+		lastbackup=$(ls -1t "${backupdir}"/*.tar.gz | head -1)
 		# date of most recent backup.
 		lastbackupdate=$(date -r "${lastbackup}")
 		# no of days since last backup.