Fixing more incorrect "<" signs used for less than comparisons.

Replaced with the "-lt" operator.
This commit is contained in:
Marcus Whybrow 2012-05-31 04:23:16 +01:00
parent 90d32af19d
commit 4a20e1bf1a

8
msm
View File

@ -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."