diff --git a/elements/rhel/pre-install.d/00-rhsm b/elements/rhel/pre-install.d/00-rhsm index cbfefb43..eb6f26d2 100755 --- a/elements/rhel/pre-install.d/00-rhsm +++ b/elements/rhel/pre-install.d/00-rhsm @@ -2,7 +2,7 @@ set -e -if [ -n $DIB_RHSM_USER ] && [ -n $DIB_RHSM_PASSWORD ] +if [ -n "$DIB_RHSM_USER" ] && [ -n "$DIB_RHSM_PASSWORD" ] then subscription-manager register --user $DIB_RHSM_USER --password $DIB_RHSM_PASSWORD # wait a second to ensure consumer certificate is finished writing to disk