mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Fix bug where in some situations $SERVER_PATH was being prepended to $*_PATH variables unnecessarily.
This commit is contained in:
4
init/msm
4
init/msm
@ -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
|
||||
;;
|
||||
|
Reference in New Issue
Block a user