Update 'Run.sh'

This commit is contained in:
2023-04-15 20:04:15 +02:00
parent 798a23d8fb
commit 3f14e40818

3
Run.sh
View File

@@ -1,8 +1,9 @@
#!/bin/bash #!/bin/bash
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"
CFG_FILE="$3"
DEFAULT_CFG_FILE=UnrealTournament.ini DEFAULT_CFG_FILE=UnrealTournament.ini
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 '='