Script Refactoring

This commit is contained in:
skiffer-git 2024-04-02 16:30:45 +08:00
parent c95d3ddbc1
commit 6f0ee32d9c
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ start_binaries() {
local bin_full_path=$(get_bin_full_path "$binary")
# Loop to start binary the specified number of times
for ((i=0; i<count; i++)); do
echo "Starting $binary instance $i: $bin_full_path -i $i -c $OPENIM_OUTPUT_CONFIG"
echo -e "Starting $binary instance $i: $bin_full_path -i $i -c $OPENIM_OUTPUT_CONFIG\n"
cmd=("$bin_full_path" -i "$i" -c "$OPENIM_OUTPUT_CONFIG")
nohup "${cmd[@]}" >> "${LOG_FILE}" 2> >(tee -a "$ERR_LOG_FILE" | while read line; do echo -e "\e[31m${line}\e[0m"; done >&2) &
done

View File

@ -27,7 +27,7 @@ fi
# Call the main function
result=$(start_binaries)
echo $result
openim::log::print_blue $result
$OPENIM_SCRIPTS/check.sh