mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 11:52:10 +08:00
Script Refactoring
This commit is contained in:
parent
f8ccdbec76
commit
432fffbe5d
@ -38,12 +38,12 @@ 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[@]}"
|
||||||
result=$( "${cmd[@]}" 2>&1 )
|
"${cmd[@]}"
|
||||||
ret_val=$?
|
ret_val=$?
|
||||||
if [ $ret_val -eq 0 ]; then
|
if [ $ret_val -eq 0 ]; then
|
||||||
echo "Started $bin_full_path successfully." $result
|
echo "Started $bin_full_path successfully."
|
||||||
else
|
else
|
||||||
echo "Failed to start $bin_full_path with exit code $ret_val." $result
|
echo "Failed to start $bin_full_path with exit code $ret_val."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user