Fixed severe bug in server_ensure_links.

Would not cycle through a servers worlds at all, therefor creating no
links when called.
This commit is contained in:
Marcus Whybrow 2012-05-31 03:37:29 +01:00
parent 828f108be1
commit 785c5730ec

2
msm
View File

@ -248,7 +248,7 @@ server_ensure_links() {
local i=${server_world_offset[$1]}
local max=$(( $i + ${server_num_worlds[$1]} ))
while [[ $i < $max ]]; do
while [[ $i -lt $max ]]; do
# -L checks for the path being a link rather than a file
# ! -a, since it is within double square brackets means: the negation of
# the existence of the file. In other words: true if does not exist