aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-05-24 10:10:08 +0800
committersteve <steve@FreeBSD.org>1999-05-24 10:10:08 +0800
commitafcbc2070fe584eae6511de284e4baea490d993a (patch)
tree488c819a1f8a888d57ba5a39b3cbf2fc3e7cc400 /comms
parentd1ea68649d18c7926c4e18386a0c0aa225c6878e (diff)
downloadfreebsd-ports-gnome-afcbc2070fe584eae6511de284e4baea490d993a.tar.gz
freebsd-ports-gnome-afcbc2070fe584eae6511de284e4baea490d993a.tar.zst
freebsd-ports-gnome-afcbc2070fe584eae6511de284e4baea490d993a.zip
Deinstall without interaction while package building.
Diffstat (limited to 'comms')
-rw-r--r--comms/mgetty+sendfax/pkg-deinstall8
1 files changed, 6 insertions, 2 deletions
diff --git a/comms/mgetty+sendfax/pkg-deinstall b/comms/mgetty+sendfax/pkg-deinstall
index d3584709d239..82ed1dbf6633 100644
--- a/comms/mgetty+sendfax/pkg-deinstall
+++ b/comms/mgetty+sendfax/pkg-deinstall
@@ -11,8 +11,12 @@ now.
END
-echo -n "do you want to deinstall the package ? [y] "
-read answ; if [ "$answ" = "" ]; then answ=y; fi
+if [ -z "${PACKAGE_BUILDING}" ]; then
+ echo -n "do you want to deinstall the package ? [y] "
+ read answ; if [ "$answ" = "" ]; then answ=y; fi
+else
+ answ=y
+fi
case $answ in
y*|Y*) exit 0;;
*) exit 1;;