From 54682b4a395334aac8cb0dd6749a8f037263898d Mon Sep 17 00:00:00 2001 From: servostar Date: Fri, 17 May 2024 15:53:27 +0200 Subject: [PATCH] made command source optional --- run-docker-build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run-docker-build.sh b/run-docker-build.sh index 9a6635a..2ad358a 100755 --- a/run-docker-build.sh +++ b/run-docker-build.sh @@ -8,7 +8,10 @@ echo "+--------------------------------------+" echo "| CHECKING prelude |" echo "+--------------------------------------+" -source ./.env +if [ -z "$SDK" ]; then + echo "no SDK specified, sourcing .env" + source ./.env +fi if [ -z "$SDK" ]; then echo "no SDK specified"