From e6f02fd9758fb7922469db1f53b8e6930a0832ea Mon Sep 17 00:00:00 2001 From: rany Date: Mon, 24 May 2021 22:47:44 +0300 Subject: [PATCH] oops --- easy-playback.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy-playback.sh b/easy-playback.sh index 45714b5..f368c52 100755 --- a/easy-playback.sh +++ b/easy-playback.sh @@ -33,7 +33,7 @@ edgePID=$! ## because it thinks file is empty and won't have any data. ## ## kill -0 checks if PID is still running. -while [ "$(wc -c "$ttsmpeg")" == 0 ] || kill -0 "$edgePID" 2>/dev/null +while kill -0 "$edgePID" 2>/dev/null && [ "$(wc -c < "$ttsmpeg")" == 0 ] do sleep 0.1 done