From 7209807f03cff8bf1b9520a346f7982883f5db1c Mon Sep 17 00:00:00 2001 From: H3o66 Date: Sun, 7 Mar 2021 14:12:33 +0100 Subject: [PATCH] fix(details): fix to show last backup --- lgsm/functions/info_distro.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/functions/info_distro.sh b/lgsm/functions/info_distro.sh index 3f7661696..283d8ed39 100755 --- a/lgsm/functions/info_distro.sh +++ b/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.