]> Untitled Git - godot.git/commitdiff
Added arg override for export name
authorClifton Palmer <clifton.james.palmer@protonmail.com>
Sun, 9 Mar 2025 10:36:05 +0000 (05:36 -0500)
committerClifton Palmer <clifton.james.palmer@protonmail.com>
Sun, 9 Mar 2025 10:36:05 +0000 (05:36 -0500)
script.sh

index ce9cd20622d542e2f153a69053b5c6f668e6fd77..75f2dfd6455c5b663dab522d4b2121b7798c539a 100755 (executable)
--- a/script.sh
+++ b/script.sh
@@ -53,9 +53,16 @@ echo Local templates - $LOCAL_TEMPLATES
 
 # iterate through all build types present in config file
 EXPORT_PRESETS_CFG=$DIR_PROJECT/export_presets.cfg
 
 # iterate through all build types present in config file
 EXPORT_PRESETS_CFG=$DIR_PROJECT/export_presets.cfg
-EXPORT_NAMES=$(awk -F= '$1=="name"{print $2}' $EXPORT_PRESETS_CFG | sed 's/"//g')
 GODOT_OPTS="--headless --path $DIR_PROJECT"
 
 GODOT_OPTS="--headless --path $DIR_PROJECT"
 
+# if arg is given, override automated export discovery
+if [[ -n "$1" ]]
+then
+    EXPORT_NAMES=$1
+else
+    EXPORT_NAMES=$(awk -F= '$1=="name"{print $2}' $EXPORT_PRESETS_CFG | sed 's/"//g')
+fi
+
 for EXPORT_NAME in $EXPORT_NAMES
 do
     echo
 for EXPORT_NAME in $EXPORT_NAMES
 do
     echo