aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/common.sh')
-rwxr-xr-xscripts/common.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/common.sh b/scripts/common.sh
index c5a86ab..9d985f2 100755
--- a/scripts/common.sh
+++ b/scripts/common.sh
@@ -42,11 +42,11 @@ sanitize()
42} 42}
43 43
44 44
45# Grab the first Section line of the sims .xml file, cut it down to the name. 45# Grab the first Section line of the sims .ini file, cut it down to the name.
46# name=$(getSimName 1) 46# name=$(getSimName 1)
47getSimName() 47getSimName()
48{ 48{
49 grep "<Section " ${PRGDIR}/../../config/$(num2name $1)/*.xml | head -n 1 | cut -d '"' -f 2 49 grep "RegionName" ${PRGDIR}/../../config/$(num2name $1)/*.ini | head -n 1 | cut -d '"' -f 2
50} 50}
51 51
52 52