# 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