Browse Source

SC2012

pull/1863/head
Daniel Gibbs 7 years ago
parent
commit
bd3e088fb2
  1. 2
      lgsm/functions/info_distro.sh

2
lgsm/functions/info_distro.sh

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

Loading…
Cancel
Save