From 3709f3670144edb5b61429ecacdcb71eb520dda1 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 22 May 2018 21:58:40 +0200 Subject: ... --- odin/strm/download_youtube | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'odin/strm/download_youtube') diff --git a/odin/strm/download_youtube b/odin/strm/download_youtube index 043d98f4..d2aa069d 100644 --- a/odin/strm/download_youtube +++ b/odin/strm/download_youtube @@ -289,11 +289,10 @@ printf ">>> %s <<<\n %s\n" "${msgId}" "${message}" p1args+=(-an -f matroska) print -- ${prePass} ${p1args} ffmpeg ${args} ${prePass} ${p1args} -- /dev/null - ffmpegResult=$((ffmpegResult || $?)) print -- ${cargs} ${p2args} ffmpeg ${args} ${cargs} ${p2args} -- "${filename}" - ffmpegResult=$((ffmpegResult || $?)) + ffmpegResult=$? cd ${oldPwd} else @@ -301,7 +300,7 @@ printf ">>> %s <<<\n %s\n" "${msgId}" "${message}" print -- ${cargs} ${p2args} pv -N "$(trimName "trans:" ${title})" ${tempfile} | ffmpeg ${args} ${cargs} ${p2args} -- "${filename}" - ffmpegResult=$((ffmpegResult || ${pipestatus[2]})) + ffmpegResult=${pipestatus[2]} fi fi fi -- cgit v1.2.3