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

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