aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/common.sh
diff options
context:
space:
mode:
authoronefang2019-05-28 06:19:38 +1000
committeronefang2019-05-28 06:19:38 +1000
commitf921cb712e67893b44496192e5297335ed65caf7 (patch)
treeb3b2782530414e23400f10ecc5b718682d2745b1 /scripts/common.sh
parentManagement scripts encounters the real world, needs patching up. (diff)
downloadopensim-SC-f921cb712e67893b44496192e5297335ed65caf7.zip
opensim-SC-f921cb712e67893b44496192e5297335ed65caf7.tar.gz
opensim-SC-f921cb712e67893b44496192e5297335ed65caf7.tar.bz2
opensim-SC-f921cb712e67893b44496192e5297335ed65caf7.tar.xz
Add [Region] .ini block.
For including actual region definition in the normal .ini stack. Same as the usual Region.ini format, except we add a RegionName parameter.
Diffstat (limited to '')
-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