Quoting to avoid expansion

Should address #330 #327 and #319
This commit is contained in:
Vladimir Kirov 2016-10-26 22:01:14 +03:00 committed by GitHub
parent b932ccb71b
commit 06207153ac

View File

@ -1833,7 +1833,7 @@ server_property() {
read_server_conf "$1" "$2"
local target_varname=SERVER_$2[$1]
if [ -z ${!target_varname} ]; then
if [ -z "${!target_varname}" ]; then
# if its still empty use the default value
manager_property "DEFAULT_$2"
server_set_property "$1" "$2" "\$SETTINGS_DEFAULT_$2"