diff --git a/Run.sh b/Run.sh index bb4656a..5e91a7d 100644 --- a/Run.sh +++ b/Run.sh @@ -1,8 +1,8 @@ #!/bin/bash SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) OUTPUT_DIR="$2" -CFG_FILE="$3" DEFAULT_CFG_FILE=UT2004.ini +CFG_FILE="{$3:-$DEFAULT_CFG_FILE}" function add_iniKeyEx() { crudini --set $OUTPUT_DIR/System/$1 $2 __$3 $4 # Warning: ugly hack with sed to allow multiple key instances + to remove space around '='