From 365a0c2062415bdbc020d4e5a4288c249bc483e0 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 22 Sep 2011 15:02:32 -0400 Subject: Enclosing shell variables for iso-* defaults in escaped double-quotes while evaluating for the length to allow using parentheses (Closes: #642463). --- functions/defaults.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'functions') diff --git a/functions/defaults.sh b/functions/defaults.sh index 796724e90..53c7af999 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -1218,22 +1218,22 @@ Check_defaults () ;; esac - if [ "$(echo ${LB_ISO_APPLICATION} | wc -c)" -gt 128 ] + if [ "$(echo \"${LB_ISO_APPLICATION}\" | wc -c)" -gt 128 ] then Echo_warning "You have specified a value of LB_ISO_APPLICATION that is too long; the maximum length is 128 characters." fi - if [ "$(echo ${LB_ISO_PREPARER} | wc -c)" -gt 128 ] + if [ "$(echo \"${LB_ISO_PREPARER}\" | wc -c)" -gt 128 ] then Echo_warning "You have specified a value of LB_ISO_PREPARER that is too long; the maximum length is 128 characters." fi - if [ "$(echo ${LB_ISO_PUBLISHER} | wc -c)" -gt 128 ] + if [ "$(echo \"${LB_ISO_PUBLISHER}\" | wc -c)" -gt 128 ] then Echo_warning "You have specified a value of LB_ISO_PUBLISHER that is too long; the maximum length is 128 characters." fi - if [ "$(eval "echo ${LB_ISO_VOLUME}" | wc -c)" -gt 32 ] + if [ "$(eval "echo \"${LB_ISO_VOLUME}\"" | wc -c)" -gt 32 ] then Echo_warning "You have specified a value of LB_ISO_VOLUME that is too long; the maximum length is 32 characters." fi -- cgit v1.2.3