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
6
msm
6
msm
@ -867,7 +867,7 @@ server_worlds_list() {
|
|||||||
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]}; then
|
if ${world_inram[$i]}; then
|
||||||
echo "[RAM] ${world_name[$i]}"
|
echo "[RAM] ${world_name[$i]}"
|
||||||
else
|
else
|
||||||
@ -885,7 +885,7 @@ server_worlds_backup() {
|
|||||||
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
|
||||||
world_backup $i
|
world_backup $i
|
||||||
i=$(( $i + 1 ))
|
i=$(( $i + 1 ))
|
||||||
done
|
done
|
||||||
@ -1042,7 +1042,7 @@ manager_stop_all_servers() {
|
|||||||
for ((tick=${max_countdown}; tick>=0; tick--)); do
|
for ((tick=${max_countdown}; tick>=0; tick--)); do
|
||||||
tput sc # Save cursor position
|
tput sc # Save cursor position
|
||||||
|
|
||||||
if (( $tick <= 1 )); then
|
if [[ $tick -le 1 ]]; then
|
||||||
echo -n "in $tick second."
|
echo -n "in $tick second."
|
||||||
else
|
else
|
||||||
echo -n "in $tick seconds."
|
echo -n "in $tick seconds."
|
||||||
|
Loading…
Reference in New Issue
Block a user