mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 20:03:38 +08:00
Script Refactoring
This commit is contained in:
parent
2d3a8eebe5
commit
a1be9abd33
@ -38,9 +38,7 @@ start_tools() {
|
|||||||
local bin_full_path=$(get_tool_full_path "$binary")
|
local bin_full_path=$(get_tool_full_path "$binary")
|
||||||
cmd=("$bin_full_path" -c "$OPENIM_OUTPUT_CONFIG")
|
cmd=("$bin_full_path" -c "$OPENIM_OUTPUT_CONFIG")
|
||||||
echo "Starting ${cmd[@]}"
|
echo "Starting ${cmd[@]}"
|
||||||
#"${cmd[@]}"
|
"${cmd[@]}"
|
||||||
"${cmd[@]}" >> "${LOG_FILE}" 2> >(tee -a "$ERR_LOG_FILE" | while read line; do echo -e "\e[31m${line}\e[0m"; done >&2) &
|
|
||||||
|
|
||||||
ret_val=$?
|
ret_val=$?
|
||||||
if [ $ret_val -eq 0 ]; then
|
if [ $ret_val -eq 0 ]; then
|
||||||
echo "Started $bin_full_path successfully."
|
echo "Started $bin_full_path successfully."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user