Fix bug where in some situations $SERVER_PATH was being prepended to $*_PATH variables unnecessarily.

This commit is contained in:
Tristan Donkers
2015-09-12 13:16:59 +10:00
parent 7646dfa403
commit 556733d192

View File

@ -1718,8 +1718,8 @@ server_set_property() {
### Changes to values before setting
case "$2" in
*_PATH)
server_property "$1" PATH
if [[ ! "$3" =~ ^${SERVER_PATH[$1]} ]]; then
if [[ ! "$3" =~ ^/.+ ]]; then
server_property "$1" PATH
eval SERVER_$2[$1]=\"${SERVER_PATH[$1]}/$3\"
fi
;;