From 81ed6d92ccdbf9a087ff9c032cbf9fa278ad8bd0 Mon Sep 17 00:00:00 2001 From: Clifton Palmer Date: Sun, 9 Mar 2025 05:36:05 -0500 Subject: [PATCH] Added arg override for export name --- script.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/script.sh b/script.sh index ce9cd20..75f2dfd 100755 --- 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 -- 2.47.2