Script Refactoring

pull/2148/head
skiffer-git 2 years ago
parent 4a6fd62611
commit 1f08404403

@ -288,6 +288,9 @@ function openim::log::print_red_no_time_stamp() {
echo -e "\033[0;31m$1\033[0m"
}
function openim::log::print_green_no_time_stamp() {
echo -e "\033[0;32m$1\033[0m"
}

@ -14,16 +14,14 @@ source "$OPENIM_SCRIPTS/bricks.sh"
result=$(start_tools)
ret_val=$?
if [ $ret_val -ne 0 ]; then
echo "tools start failed, abort start"
echo "$result"
openim::log::print_red "Some tools failed to start, details are as follows, abort start"
openim::log::print_red_no_time_stamp "$result"
exit 1
fi
echo "all tools ok"
echo "$result"
openim::log::print_green "All tools executed successfully, details are as follows:"
openim::log::print_green_no_time_stamp "$result"
kill_exist_binaries

Loading…
Cancel
Save