Remove debugging, switch -ne to -eq
parent
c78de862b4
commit
622a0ee5b6
|
@ -41,19 +41,13 @@ if [[ -n "$UNITY_LICENSE" ]]; then
|
||||||
ACTIVATION_SUCCESSFUL=$(echo $ACTIVATION_OUTPUT | grep 'Next license update check is after' | wc -l)
|
ACTIVATION_SUCCESSFUL=$(echo $ACTIVATION_OUTPUT | grep 'Next license update check is after' | wc -l)
|
||||||
|
|
||||||
# Set exit code to 0 if activation was successful
|
# 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
|
UNITY_EXIT_CODE=0
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# Remove license file
|
# Remove license file
|
||||||
rm -f $FILE_PATH
|
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
|
elif [[ -n "$UNITY_SERIAL" && -n "$UNITY_EMAIL" && -n "$UNITY_PASSWORD" ]]; then
|
||||||
#
|
#
|
||||||
# PROFESSIONAL (SERIAL) LICENSE MODE
|
# PROFESSIONAL (SERIAL) LICENSE MODE
|
||||||
|
|
Loading…
Reference in New Issue