mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Allows quotations around server.properties settings.
This commit is contained in:
parent
5802a40d1e
commit
f120290aae
9
init/msm
9
init/msm
@ -2041,6 +2041,15 @@ server_load_config() {
|
||||
if [ ! -z "$line" ]; then
|
||||
name="$(echo $line | awk -F '=' '{print $1}')"
|
||||
value="$(echo $line | awk -F '=' '{print $2}')"
|
||||
|
||||
# Remove quotations from value
|
||||
if [[ "$value" =~ ^\"(.*)\" ]]; then
|
||||
value="${BASH_REMATCH[1]}"
|
||||
else
|
||||
if [[ "$value" =~ ^\'(.*)\' ]]; then
|
||||
value="${BASH_REMATCH[1]}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
case "$name" in
|
||||
|
Loading…
Reference in New Issue
Block a user