Skip to content

Commit 5fc8953

Browse files
authored
fix(details): fix to show last backup (#3348)
1 parent 47d0de1 commit 5fc8953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lgsm/functions/info_distro.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ if [ -d "${backupdir}" ]; then
214214
# number of backups.
215215
backupcount=$(find "${backupdir}"/*.tar.gz | wc -l)
216216
# most recent backup.
217-
lastbackup=$(ls -1tr "${backupdir}"/*.tar.gz | head -1)
217+
lastbackup=$(ls -1t "${backupdir}"/*.tar.gz | head -1)
218218
# date of most recent backup.
219219
lastbackupdate=$(date -r "${lastbackup}")
220220
# no of days since last backup.

0 commit comments

Comments
 (0)