From a6607a341e2cddc73214d1971af2494b591b85e5 Mon Sep 17 00:00:00 2001 From: Jibbajabbafic Date: Wed, 15 Jan 2020 21:16:39 +0000 Subject: [PATCH] feat(activate): add more checks for licenses --- builder/steps/activate.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/builder/steps/activate.sh b/builder/steps/activate.sh index a57359ad..d7ac75a7 100644 --- a/builder/steps/activate.sh +++ b/builder/steps/activate.sh @@ -58,7 +58,7 @@ if [[ -n "$UNITY_LICENSE" ]]; then exit $UNITY_EXIT_CODE fi -else +elif [[ -n "$UNITY_SERIAL" && -n "$UNITY_EMAIL" && -n "$UNITY_PASSWORD" ]]; then # # PROFESSIONAL (SERIAL) LICENSE MODE # @@ -89,5 +89,12 @@ else # Exit with the code from the license verification step exit $UNITY_EXIT_CODE - +else + # Exit since no license and no serial number provided! + echo "No personal or professional licenses provided!" + echo "Please ensure you have setup one of these licensing methods:" + echo " - Personal: Set the UNITY_LICENSE environment variable." + echo " - Professional: Set the UNITY_EMAIL, UNITY_PASSWORD and UNITY_SERIAL environment variables." + echo "See https://github.com/webbertakken/unity-builder#usage for details." + exit 1; fi