From 2d3095660dfc3686c86f869b4c258398bb107972 Mon Sep 17 00:00:00 2001 From: Jibbajabbafic Date: Sun, 12 Jan 2020 19:17:07 +0000 Subject: [PATCH] fix(license): only return the license in pro mode --- builder/steps/return_license.sh | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/builder/steps/return_license.sh b/builder/steps/return_license.sh index 725c71a9..be21b1ed 100644 --- a/builder/steps/return_license.sh +++ b/builder/steps/return_license.sh @@ -1,14 +1,16 @@ #!/usr/bin/env bash -# -# PROFESSIONAL (SERIAL) LICENSE MODE -# -# This will return the license that is currently in use. -# -xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \ - /opt/Unity/Editor/Unity \ - -batchmode \ - -nographics \ - -logFile /dev/stdout \ - -quit \ - -returnlicense +if [[ -n "$UNITY_SERIAL" ]]; then + # + # PROFESSIONAL (SERIAL) LICENSE MODE + # + # This will return the license that is currently in use. + # + xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \ + /opt/Unity/Editor/Unity \ + -batchmode \ + -nographics \ + -logFile /dev/stdout \ + -quit \ + -returnlicense +fi