Update 'Run.sh'

This commit is contained in:
2023-04-11 00:27:46 +02:00
parent 2418cd6de9
commit 665f608e08

2
Run.sh
View File

@@ -2,7 +2,7 @@
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
OUTPUT_DIR="$2" OUTPUT_DIR="$2"
DEFAULT_CFG_FILE=UT2004.ini DEFAULT_CFG_FILE=UT2004.ini
CFG_FILE="{$3:-$DEFAULT_CFG_FILE}" CFG_FILE="${3:-$DEFAULT_CFG_FILE}"
function add_iniKeyEx() { function add_iniKeyEx() {
crudini --set $OUTPUT_DIR/System/$1 $2 __$3 $4 crudini --set $OUTPUT_DIR/System/$1 $2 __$3 $4
# Warning: ugly hack with sed to allow multiple key instances + to remove space around '=' # Warning: ugly hack with sed to allow multiple key instances + to remove space around '='