From 7cb13edc4b0be76ff3d2acf161f627929424d627 Mon Sep 17 00:00:00 2001 From: Phil Date: Sat, 5 Mar 2022 16:53:32 +0100 Subject: [PATCH] if backupdir is symlink fix no backups were found if backupdir is symlink --- 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 148e2df48..45d9af4a3 100755 --- a/lgsm/functions/info_distro.sh +++ b/lgsm/functions/info_distro.sh @@ -249,7 +249,7 @@ if [ -d "${backupdir}" ]; then backupcount=0 # If there are backups in backup dir. - if [ "$(find "${backupdir}" -name "*.tar.gz" | wc -l)" -ne "0" ]; then + if [ "$(find "${backupdir}/" -name "*.tar.gz" | wc -l)" -ne "0" ]; then # number of backups. backupcount="$(find "${backupdir}"/*.tar.gz | wc -l)" # most recent backup.