]> Untitled Git - godot.git/blobdiff - script.sh
Added arg override for export name
[godot.git] / 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
-EXPORT_NAMES=$(awk -F= '$1=="name"{print $2}' $EXPORT_PRESETS_CFG | sed 's/"//g')
 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