فهرست منبع

missing quotes

Daniel Gibbs 7 سال پیش
والد
کامیت
16f46a0cb3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      lgsm/functions/info_distro.sh

+ 1 - 1
lgsm/functions/info_distro.sh

@@ -155,7 +155,7 @@ if [ -d "${backupdir}" ]; then
 	backupcount=0
 	backupcount=0
 
 
 	# If there are backups in backup dir.
 	# 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.
 		# number of backups.
 		backupcount=$(find "${backupdir}"/*.tar.gz | wc -l)
 		backupcount=$(find "${backupdir}"/*.tar.gz | wc -l)
 		# most recent backup.
 		# most recent backup.