From ee8facc3b3d9c1725c7f5585849f6c6be7905d71 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Sun, 1 Sep 2019 00:00:52 +0930 Subject: prevent script failing due to commit b4e8360 --- animegrep.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/animegrep.sh b/animegrep.sh index 57502f5..5337c1b 100755 --- a/animegrep.sh +++ b/animegrep.sh @@ -101,7 +101,7 @@ function getsubs { # $1 = file #echo "getting subs for "$1""; - rm out/subs.srt; + rm out/subs.srt || true; CFILE=$(basename "$1" .mkv); #echo "CFILE is "$CFILE""; #echo "extracting subs from $1 track ${TRACK} to out/subs.srt"; @@ -113,7 +113,7 @@ function grepsubs { # $1 = file $2 = CFILE while read -r line; do - ((x++)); + ((x++)) || true; #echo "line in grep ${line}"; #parselinie $x "$1" $line; parseline "$1" "$line" "$2"; @@ -153,7 +153,7 @@ function merge if [ $x != 0 ]; then str+=" +"$f""; fi - ((x++)); + ((x++)) || true; done; mkvmerge $str -o out/out.mkv } -- cgit v1.2.3