From 2d3a8eebe5753a9ca4c16586693880b11f3540fa Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Tue, 2 Apr 2024 18:17:09 +0800 Subject: [PATCH] Script Refactoring --- scripts-new/bricks.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts-new/bricks.sh b/scripts-new/bricks.sh index c8d4f515b..f6d4f9709 100644 --- a/scripts-new/bricks.sh +++ b/scripts-new/bricks.sh @@ -38,7 +38,9 @@ start_tools() { local bin_full_path=$(get_tool_full_path "$binary") cmd=("$bin_full_path" -c "$OPENIM_OUTPUT_CONFIG") 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=$? if [ $ret_val -eq 0 ]; then echo "Started $bin_full_path successfully."