From 50b2114b3b976bb9a1de04cd728a6d9c9afb52b8 Mon Sep 17 00:00:00 2001 From: Hui Zhang Date: Tue, 19 Oct 2021 07:41:07 +0000 Subject: [PATCH] fix error condition --- examples/librispeech/s2/local/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/librispeech/s2/local/test.sh b/examples/librispeech/s2/local/test.sh index 67174152..4a1cd238 100755 --- a/examples/librispeech/s2/local/test.sh +++ b/examples/librispeech/s2/local/test.sh @@ -81,7 +81,7 @@ for dmethd in attention ctc_greedy_search ctc_prefix_beam_search attention_resco ) & pids+=($!) # store background pids i=0; for pid in "${pids[@]}"; do wait ${pid} || ((++i)); done - [ ${i} -gt 0 ] && echo "$0: ${i} background jobs are failed." && false + [ ${i} -gt 0 ] && echo "$0: ${i} background jobs are failed." || true done ) done