diff --git a/builder/steps/activate.sh b/builder/steps/activate.sh index 27ea6dca..ed7e4473 100644 --- a/builder/steps/activate.sh +++ b/builder/steps/activate.sh @@ -41,19 +41,13 @@ if [[ -n "$UNITY_LICENSE" ]]; then ACTIVATION_SUCCESSFUL=$(echo $ACTIVATION_OUTPUT | grep 'Next license update check is after' | wc -l) # Set exit code to 0 if activation was successful - if [[ $ACTIVATION_SUCCESSFUL -ne 1 ]]; then + if [[ $ACTIVATION_SUCCESSFUL -eq 1 ]]; then UNITY_EXIT_CODE=0 fi; # Remove license file rm -f $FILE_PATH - # TODO - remove debugging - echo "activation successful value: $ACTIVATION_SUCCESSFUL" - echo $ACTIVATION_OUTPUT - echo $ACTIVATION_OUTPUT | grep 'Next license update check is after' - echo $ACTIVATION_OUTPUT | grep 'Next license update check is after' | wc -l - elif [[ -n "$UNITY_SERIAL" && -n "$UNITY_EMAIL" && -n "$UNITY_PASSWORD" ]]; then # # PROFESSIONAL (SERIAL) LICENSE MODE