diff --git a/elements/rhel/finalise.d/60-rhsm-unregister b/elements/rhel/finalise.d/60-rhsm-unregister index 27d7884ff..42b7f0270 100755 --- a/elements/rhel/finalise.d/60-rhsm-unregister +++ b/elements/rhel/finalise.d/60-rhsm-unregister @@ -2,6 +2,6 @@ set -e -if [ -n $DIB_RHSM_USER ] && [ -n $DIB_RHSM_PASSWORD ]; then +if [ -n "$DIB_RHSM_USER" ] && [ -n "$DIB_RHSM_PASSWORD" ]; then subscription-manager unregister fi