From 16f46a0cb3bb3c0ace83f9c3201cc3f4a02aa41f Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 18 Jul 2018 20:37:03 +0100 Subject: [PATCH] missing quotes --- 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 e65ce12f0..37adc0a19 100644 --- a/lgsm/functions/info_distro.sh +++ b/lgsm/functions/info_distro.sh @@ -155,7 +155,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.