diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2002-04-21 02:27:48 +0800 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2002-04-21 02:27:48 +0800 |
commit | 474300d91be69b342ec703485a26cb8140649184 (patch) | |
tree | 5089728f98bb02eade621d453bb90cb543c95654 /mail/postfix28/pkg-install | |
parent | 5ccc5f9ad6b08efceed4244af1c0ee5a9cef9672 (diff) | |
download | freebsd-ports-gnome-474300d91be69b342ec703485a26cb8140649184.tar.gz freebsd-ports-gnome-474300d91be69b342ec703485a26cb8140649184.tar.zst freebsd-ports-gnome-474300d91be69b342ec703485a26cb8140649184.zip |
handle batch builds
PR: 37259
Submitted by: maintainer
Diffstat (limited to 'mail/postfix28/pkg-install')
-rw-r--r-- | mail/postfix28/pkg-install | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/postfix28/pkg-install b/mail/postfix28/pkg-install index 3ef249b885b1..8ecea1626d2b 100644 --- a/mail/postfix28/pkg-install +++ b/mail/postfix28/pkg-install @@ -4,13 +4,14 @@ # PKG_PREFIX=${PKG_PREFIX:=/usr/local} +BATCH=${BATCH:=no} ask() { local question default answer question=$1 default=$2 - if [ -z "${PACKAGE_BUILDING}" ]; then + if [ -z "${PACKAGE_BUILDING}" -a x${BATCH} = xno ]; then read -p "${question} [${default}]? " answer fi if [ x${answer} = x ]; then |