Skip to content

Instantly share code, notes, and snippets.

@rkandas
Created August 11, 2019 14:35
Show Gist options
  • Save rkandas/73a671909a76dce85dd1fa3e532a9270 to your computer and use it in GitHub Desktop.
Save rkandas/73a671909a76dce85dd1fa3e532a9270 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
set -x
mkdir -p /root/.cache/unity3d
mkdir -p /root/.local/share/unity3d/Unity/
set +x
echo 'Writing $UNITY_LICENSE_CONTENT to license file /root/.local/share/unity3d/Unity/Unity_lic.ulf'
echo "$UNITY_LICENSE_CONTENT" | base64 --decode | tr -d '\r' > /root/.local/share/unity3d/Unity/Unity_lic.ulf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment