mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Fixes #13 thanks to @Jonek01 for spotting the problem.
This commit is contained in:
parent
ad0a8fb3e3
commit
09acae397c
12
init/msm
12
init/msm
@ -1499,12 +1499,12 @@ init() {
|
|||||||
num_worlds=0
|
num_worlds=0
|
||||||
num_servers=0
|
num_servers=0
|
||||||
|
|
||||||
local server_id=0
|
local id=0
|
||||||
while IFS= read -r -d $'\0' server_path; do
|
while IFS= read -r -d $'\0' path; do
|
||||||
local name=$(basename $server_path)
|
local name=$(basename $path)
|
||||||
server_init $server_id $name
|
server_init $id $name
|
||||||
server_id=$(($server_id+1))
|
id=$(($id+1))
|
||||||
num_servers=$server_id
|
num_servers=$id
|
||||||
done < <(find "$SERVER_STORAGE_PATH" -mindepth 1 -maxdepth 1 -type d -print0)
|
done < <(find "$SERVER_STORAGE_PATH" -mindepth 1 -maxdepth 1 -type d -print0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user