Fixes #13 thanks to @Jonek01 for spotting the problem.

This commit is contained in:
Marcus Whybrow 2012-06-03 13:33:16 +01:00
parent ad0a8fb3e3
commit 09acae397c

View File

@ -1499,12 +1499,12 @@ init() {
num_worlds=0
num_servers=0
local server_id=0
while IFS= read -r -d $'\0' server_path; do
local name=$(basename $server_path)
server_init $server_id $name
server_id=$(($server_id+1))
num_servers=$server_id
local id=0
while IFS= read -r -d $'\0' path; do
local name=$(basename $path)
server_init $id $name
id=$(($id+1))
num_servers=$id
done < <(find "$SERVER_STORAGE_PATH" -mindepth 1 -maxdepth 1 -type d -print0)
}