From 3fea0047dd2ff4ab9d8a22f36950ca77ed83aa9c Mon Sep 17 00:00:00 2001 From: Webber Date: Sun, 24 Nov 2019 21:32:04 +0100 Subject: [PATCH] Set license file where unity expects it --- request-activation/entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/request-activation/entrypoint.sh b/request-activation/entrypoint.sh index c012fe9..5bb2fd6 100644 --- a/request-activation/entrypoint.sh +++ b/request-activation/entrypoint.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -e + if [[ -n "$UNITY_LICENSE" ]]; then # # PERSONAL LICENSE MODE @@ -19,7 +21,9 @@ if [[ -n "$UNITY_LICENSE" ]]; then # Copy license file from Github variables echo "$UNITY_LICENSE" > $FILE_PATH - # echo "$UNITY_LICENSE" > /root/.local/share/unity3d/Unity/Unity_lic.ulf + echo "$UNITY_LICENSE" | tr -d '\r' > /root/.local/share/unity3d/Unity/Unity_lic.ulf + + set -x # Activate container # See: https://docs.unity3d.com/Manual/CommandLineArguments.html