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.