mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 21:02:11 +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")
|
||||
cmd=("$bin_full_path" -c "$OPENIM_OUTPUT_CONFIG")
|
||||
echo "Starting ${cmd[@]}"
|
||||
#"${cmd[@]}"
|
||||
"${cmd[@]}" >> "${LOG_FILE}" 2> >(tee -a "$ERR_LOG_FILE" | while read line; do echo -e "\e[31m${line}\e[0m"; done >&2) &
|
||||
|
||||
"${cmd[@]}"
|
||||
ret_val=$?
|
||||
if [ $ret_val -eq 0 ]; then
|
||||
echo "Started $bin_full_path successfully."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user