From 32081adc591e846a217de8699c4ecd8719256db2 Mon Sep 17 00:00:00 2001 From: Webber Date: Tue, 21 Jan 2020 21:29:07 +0100 Subject: [PATCH] Remove debugging, switch -ne to -eq --- builder/steps/activate.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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