Enclosing shell variables for iso-* defaults in escaped double-quotes while evaluating for the length to allow using parentheses (Closes: ).

This commit is contained in:
Yaroslav Halchenko 2011-09-22 15:02:32 -04:00 committed by Daniel Baumann
parent 3eeac2e0be
commit 365a0c2062
1 changed files with 4 additions and 4 deletions
functions

View File

@ -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