mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 20:54:18 +08:00
Script Refactoring
This commit is contained in:
parent
614250665b
commit
309db2cb76
@ -284,9 +284,7 @@ function openim::log::print_red() {
|
||||
echo -e "[$current_time] \033[0;31m$1\033[0m"
|
||||
}
|
||||
|
||||
function openim::log::print_red_two_lines() {
|
||||
local current_time=$(date "+%Y-%m-%d %H:%M:%S %Z")
|
||||
echo -e "[$current_time]"
|
||||
function openim::log::print_red_no_time_stamp() {
|
||||
echo -e "\033[0;31m$1\033[0m"
|
||||
}
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ result=$(check_binaries_stop)
|
||||
ret_val=$?
|
||||
if [ $ret_val -ne 0 ]; then
|
||||
openim::log::print_red "Some services have not been stopped, details are as follows:"
|
||||
openim::log::print_red_two_lines "$result"
|
||||
openim::log::print_red_no_time_stamp "$result"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user