summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound-cutter.in4
1 files 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."