mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Fixing more incorrect "<" signs used for less than comparisons.
Replaced with the "-lt" operator.
This commit is contained in:
parent
90d32af19d
commit
4a20e1bf1a
8
msm
8
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."
|
||||
|
Loading…
Reference in New Issue
Block a user