Change UNITY_LICENSE_PATH to UNITY_LICENSE_FILE

This commit is contained in:
litefeel 2020-03-05 00:49:04 +08:00 committed by Webber Takken
parent 0088ca3094
commit e1eda1e876
3 changed files with 4 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
if [[ -n "$UNITY_LICENSE" || -n "$UNITY_LICENSE_PATH" ]]; then
if [[ -n "$UNITY_LICENSE" || -n "$UNITY_LICENSE_FILE" ]]; then
#
# PERSONAL LICENSE MODE
#
@ -20,8 +20,7 @@ if [[ -n "$UNITY_LICENSE" || -n "$UNITY_LICENSE_PATH" ]]; then
echo "$UNITY_LICENSE" | tr -d '\r' > $FILE_PATH
else
# Copy license file from file system
cat "$UNITY_LICENSE_PATH" | tr -d '\r' > $FILE_PATH
cat "$FILE_PATH"
cat "$UNITY_LICENSE_FILE" | tr -d '\r' > $FILE_PATH
fi
# Activate license

View File

@ -34,7 +34,7 @@ class Docker {
--workdir /github/workspace \
--rm \
--env UNITY_LICENSE \
--env UNITY_LICENSE_PATH \
--env UNITY_LICENSE_FILE \
--env UNITY_EMAIL \
--env UNITY_PASSWORD \
--env UNITY_SERIAL \