From 13d4e6e65c52248dd2e62e3170c7fc4ac8beee79 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 18 Jun 2017 20:53:24 +0200 Subject: jetzt auch ohne -o"%s" und "#noNewFile --- sound-cutter.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound-cutter.in b/sound-cutter.in index ff259e1..652413d 100644 --- a/sound-cutter.in +++ b/sound-cutter.in @@ -423,10 +423,10 @@ done trackCount=$[1+$( echo "${trimcmd}" | \ tr ' ' '\n' | \ - grep -c '^newfile$' + grep -c '^newfile$' || true )] -if [ ${trackCount} -ne ${#names[@]} ] +if [ -n "${names}" ] && [ ${trackCount} -ne ${#names[@]} ] then >&2 echo "Die Anzahl der Namen (${#names[@]}) ist nicht gleich der Anzahl der Tracks (${trackCount})." >&2 echo "Das sollte eigentlich nicht passieren koennen." -- cgit v1.2.3-54-g00ecf