mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Corrected some "<" operators to use "-lt" instead.
Seriously, I though I got them all!
This commit is contained in:
parent
b4db7c961e
commit
14f2804fde
8
msm
8
msm
@ -198,7 +198,7 @@ world_backup() {
|
|||||||
# $1: The name of the server
|
# $1: The name of the server
|
||||||
server_get_id() {
|
server_get_id() {
|
||||||
local i=0
|
local i=0
|
||||||
while [[ $i < $num_servers ]]; do
|
while [[ $i -lt $num_servers ]]; do
|
||||||
if [[ "${server_name[$i]}" == "$1" ]]; then
|
if [[ "${server_name[$i]}" == "$1" ]]; then
|
||||||
echo "$i"
|
echo "$i"
|
||||||
return 0
|
return 0
|
||||||
@ -218,7 +218,7 @@ server_world_get_id() {
|
|||||||
local max=$(( $i + ${server_num_worlds[$1]} ))
|
local max=$(( $i + ${server_num_worlds[$1]} ))
|
||||||
|
|
||||||
# For each of the servers worlds:
|
# For each of the servers worlds:
|
||||||
while [[ $i < $max ]]; do
|
while [[ $i -lt $max ]]; do
|
||||||
if [[ "${world_name[$i]}" == "$2" ]]; then
|
if [[ "${world_name[$i]}" == "$2" ]]; then
|
||||||
echo $i
|
echo $i
|
||||||
return 0
|
return 0
|
||||||
@ -304,7 +304,7 @@ server_worlds_to_ram() {
|
|||||||
local max=$(( $i + ${server_num_worlds[$1]} ))
|
local max=$(( $i + ${server_num_worlds[$1]} ))
|
||||||
|
|
||||||
# For each of the servers worlds:
|
# For each of the servers worlds:
|
||||||
while [[ $i < $max ]]; do
|
while [[ $i -lt $max ]]; do
|
||||||
if ${world_inram[$i]} && [ -L ${world_link[$i]} ]; then
|
if ${world_inram[$i]} && [ -L ${world_link[$i]} ]; then
|
||||||
world_to_ram $i
|
world_to_ram $i
|
||||||
fi
|
fi
|
||||||
@ -324,7 +324,7 @@ server_worlds_to_disk() {
|
|||||||
local max=$(( $i + ${server_num_worlds[$1]} ))
|
local max=$(( $i + ${server_num_worlds[$1]} ))
|
||||||
|
|
||||||
# For each of the servers worlds:
|
# For each of the servers worlds:
|
||||||
while [[ $i < $max ]]; do
|
while [[ $i -lt $max ]]; do
|
||||||
if [ -e ${world_ramdisk_path[$i]} ]; then
|
if [ -e ${world_ramdisk_path[$i]} ]; then
|
||||||
world_to_disk $i
|
world_to_disk $i
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user