mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Replaced more trouble substring lines.
Got the last of the negative indexed substrings, which caused problems on some systems. Replaced with a more robust system.
This commit is contained in:
parent
472adc586b
commit
3e84582d5d
4
init/msm
4
init/msm
@ -1839,11 +1839,11 @@ command_server_toggledownfall() {
|
||||
|
||||
regex="${LOG_REGEX} ${server_confirm_toggledownfall[$1]}"
|
||||
if [[ "$line" =~ $regex ]]; then
|
||||
echo "${line:36:(-3)}"
|
||||
echo "${line:36:${#line}-3}"
|
||||
fi
|
||||
regex="${LOG_REGEX} ${server_confirm_toggledownfall_fail[$1]}"
|
||||
if [[ "$line" =~ $regex ]]; then
|
||||
echo "${line:34:(-3)}"
|
||||
echo "${line:34:${#line}-3}"
|
||||
fi
|
||||
else
|
||||
error_exit SERVER_STOPPED "Server \"${server_name[$1]}\" is not running."
|
||||
|
Loading…
Reference in New Issue
Block a user