Browse Source

fix(details): fix to show last backup

pull/3348/head
H3o66 5 years ago
parent
commit
7209807f03
  1. 2
      lgsm/functions/info_distro.sh

2
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.

Loading…
Cancel
Save