Fix return status when all title slides already exist - bitreich-tv - Meme TV encoding and streaming
HTML git clone git://bitreich.org/bitreich-tv git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/bitreich-tv
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR LICENSE
---
DIR commit 3f7b865c858b443df5811ff03cdde199c4770903
DIR parent 5e3d88ac8c943a0a3a4e6e814a83520527461126
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 17 Aug 2020 00:13:34 +0200
Fix return status when all title slides already exist
Diffstat:
M bin/brtv-generate-title-slides.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
DIR diff --git a/bin/brtv-generate-title-slides.sh b/bin/brtv-generate-title-slides.sh
@@ -48,5 +48,7 @@ mkdir -p "$title"
# (if title slide doesn't already exist)
while read -r tag url; do
out="${title}/${tag#\#}.${video_ext}"
- [ ! -f "$out" ] && title_slide "$tag" "$out"
+ if [ ! -f "$out" ]; then
+ title_slide "$tag" "$out"
+ fi
done