Do not show with page if we are non-interactive
authorJesus Climent <mooch@debian.org>
Wed, 8 Feb 2006 22:26:36 +0000 (22:26 +0000)
committerJesus Climent <mooch@debian.org>
Wed, 8 Feb 2006 22:26:36 +0000 (22:26 +0000)
abcde

diff --git a/abcde b/abcde
index 39642ee..5d13063 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -1762,7 +1762,7 @@ do_localcddb ()
                                                if [ ! "$INTERACTIVE" = "y" ]; then break ; fi
                                        } >> "$ABCDETEMPDIR/cddblocalchoices"
                                done
-                               if [ $(cat "$ABCDETEMPDIR/cddblocalchoices" | wc -l) -ge 24 ]; then
+                               if [ $(cat "$ABCDETEMPDIR/cddblocalchoices" | wc -l) -ge 24 ] && [ "$INTERACTIVE" = "y" ]; then
                                        page "$ABCDETEMPDIR/cddblocalchoices"
                                else
                                        # It's all going to fit in one page, cat it