diff options
author | onefang | 2019-05-28 06:19:38 +1000 |
---|---|---|
committer | onefang | 2019-05-28 06:19:38 +1000 |
commit | f921cb712e67893b44496192e5297335ed65caf7 (patch) | |
tree | b3b2782530414e23400f10ecc5b718682d2745b1 /scripts/common.sh | |
parent | Management scripts encounters the real world, needs patching up. (diff) | |
download | opensim-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-x | scripts/common.sh | 4 |
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) |
47 | getSimName() | 47 | getSimName() |
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 | ||