Skip to content

Commit 2118c52

Browse files
committed
fix(scripts): unified 端口同步无输出时 start 不再误失败
1 parent 9ed7270 commit 2118c52

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/run_unified_bot.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ prepare_unified_ports() {
5555
[[ -n "${out}" ]] && echo "${out}" | sed 's/^/ /' >&2
5656
return "${rc}"
5757
fi
58-
[[ -n "${out}" ]] && echo "${out}" | sed 's/^/ /'
58+
if [[ -n "${out}" ]]; then
59+
echo "${out}" | sed 's/^/ /'
60+
fi
61+
return 0
5962
}
6063

6164
start_bot() {

0 commit comments

Comments
 (0)