Checking licensing server first for now, since serial is always set
parent
e7766e8d01
commit
b44440fa3a
|
|
@ -4,17 +4,8 @@
|
||||||
echo "Changing to \"$ACTIVATE_LICENSE_PATH\" directory."
|
echo "Changing to \"$ACTIVATE_LICENSE_PATH\" directory."
|
||||||
pushd "$ACTIVATE_LICENSE_PATH"
|
pushd "$ACTIVATE_LICENSE_PATH"
|
||||||
|
|
||||||
if [[ -n "$UNITY_SERIAL" ]]; then
|
|
||||||
#
|
if [[ -n "$UNITY_LICENSING_SERVER" ]]; then #
|
||||||
# PROFESSIONAL (SERIAL) LICENSE MODE
|
|
||||||
#
|
|
||||||
# This will return the license that is currently in use.
|
|
||||||
#
|
|
||||||
unity-editor \
|
|
||||||
-logFile /dev/stdout \
|
|
||||||
-quit \
|
|
||||||
-returnlicense
|
|
||||||
elif [[ -n "$UNITY_LICENSING_SERVER" ]]; then #
|
|
||||||
#
|
#
|
||||||
# Return any floating license used.
|
# Return any floating license used.
|
||||||
#
|
#
|
||||||
|
|
@ -27,7 +18,16 @@ elif [[ -n "$UNITY_LICENSING_SERVER" ]]; then #
|
||||||
echo "status $status"
|
echo "status $status"
|
||||||
echo "Returned $token"
|
echo "Returned $token"
|
||||||
done
|
done
|
||||||
|
elif [[ -n "$UNITY_SERIAL" ]]; then
|
||||||
|
#
|
||||||
|
# PROFESSIONAL (SERIAL) LICENSE MODE
|
||||||
|
#
|
||||||
|
# This will return the license that is currently in use.
|
||||||
|
#
|
||||||
|
unity-editor \
|
||||||
|
-logFile /dev/stdout \
|
||||||
|
-quit \
|
||||||
|
-returnlicense
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Return to previous working directory
|
# Return to previous working directory
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue