From e8b4e439a5c5737dc19a7dc20834b8bed0f475ac Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Sat, 30 Nov 2019 00:05:16 -0500 Subject: [PATCH] BUGFIX - SUBDIR --- entrypoint.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 1d35a4d..6d02d3e 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,9 +1,6 @@ #!/bin/sh set -e -if [ "$SUBDIRECTORY" != "" ]; then - SUBDIRECTORY = "/$SUBDIRECTORY/" -fi wget https://downloads.tuxfamily.org/godotengine/3.1.1/Godot_v3.1.1-stable_export_templates.tpz --quiet @@ -16,12 +13,12 @@ rm -f Godot_v3.1.1-stable_export_templates.tpz # Export for Linux mkdir -p ./build/linux -godot --export Linux/X11 ./build/linux/${SUBDIRECTORY}${PROJECT} +godot --export Linux/X11 ./build/linux/${SUBDIRECTORY:-""}${PROJECT} # Export for Windows mkdir -p ./build/windows -godot --export "Windows Desktop" ./build/windows/${SUBDIRECTORY}${PROJECT}.exe +godot --export "Windows Desktop" ./build/windows/${SUBDIRECTORY:-""}${PROJECT}.exe # Export for OSX mkdir -p ./builds/mac -godot --export "Mac OSX" ./build/mac/${SUBDIRECTORY}${PROJECT} \ No newline at end of file +godot --export "Mac OSX" ./build/mac/${SUBDIRECTORY:-""}${PROJECT} \ No newline at end of file