From a6112368f71b243a153f19a1893e7a4ef0007486 Mon Sep 17 00:00:00 2001 From: "chess.griffin" Date: Mon, 9 Dec 2013 02:23:42 +0000 Subject: [PATCH] incorporate patch from eric Pratt so sbopkg honors -q; fixes Issue 66 --- src/usr/sbin/sbopkg | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index 443dbca..c0d6c68 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -3906,22 +3906,24 @@ process_queue() { echo echo "Pre-check complete." echo - crunch_fmt "Do you wish to proceed based on the search \ - results above? Packages not found will be skipped during \ - the process." - echo - while :; do - read $NFLAG -ep "(P)roceed or (Q)uit?: " - case $REPLY in - P|p) break ;; - Q|q) - rm -f $PKGPATH/$CHKBUILD.{info,SlackBuild}.build - rm -f $PKGPATH/options.build - return 0 - ;; - *) unknown_response ;; - esac - done + if [[ ! $QUIET ]]; then + crunch_fmt "Do you wish to proceed based on the search \ + results above? Packages not found will be skipped during \ + the process." + echo + while :; do + read $NFLAG -ep "(P)roceed or (Q)uit?: " + case $REPLY in + P|p) break ;; + Q|q) + rm -f $PKGPATH/$CHKBUILD.{info,SlackBuild}.build + rm -f $PKGPATH/options.build + return 0 + ;; + *) unknown_response ;; + esac + done + fi echo fi if [[ $KEEPLOG ]]; then