From 4a20e1bf1a1bea24b7eb78f3f27768fc72f1cdb7 Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Thu, 31 May 2012 04:23:16 +0100 Subject: [PATCH] Fixing more incorrect "<" signs used for less than comparisons. Replaced with the "-lt" operator. --- msm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/msm b/msm index 4bd7ea9..34e447b 100755 --- a/msm +++ b/msm @@ -867,7 +867,7 @@ server_worlds_list() { local max=$(( $i + ${server_num_worlds[$1]} )) # For each of the servers worlds: - while [[ $i < $max ]]; do + while [[ $i -lt $max ]]; do if ${world_inram[$i]}; then echo "[RAM] ${world_name[$i]}" else @@ -883,9 +883,9 @@ server_worlds_list() { server_worlds_backup() { local i=${server_world_offset[$1]} local max=$(( $i + ${server_num_worlds[$1]} )) - + # For each of the servers worlds: - while [[ $i < $max ]]; do + while [[ $i -lt $max ]]; do world_backup $i i=$(( $i + 1 )) done @@ -1042,7 +1042,7 @@ manager_stop_all_servers() { for ((tick=${max_countdown}; tick>=0; tick--)); do tput sc # Save cursor position - if (( $tick <= 1 )); then + if [[ $tick -le 1 ]]; then echo -n "in $tick second." else echo -n "in $tick seconds."