aboutsummaryrefslogtreecommitdiffstats
path: root/print/xdvi/pkg-deinstall
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-07-05 05:41:46 +0800
committersteve <steve@FreeBSD.org>1999-07-05 05:41:46 +0800
commiteb337b45c0f2fa8b3dc8a04df893b109423243d5 (patch)
tree05c8116183115152b7ed7fb55238dd05c612ca9c /print/xdvi/pkg-deinstall
parent5b6708776618691d375e8ac1e2fa25df6e54ae80 (diff)
downloadfreebsd-ports-gnome-eb337b45c0f2fa8b3dc8a04df893b109423243d5.tar.gz
freebsd-ports-gnome-eb337b45c0f2fa8b3dc8a04df893b109423243d5.tar.zst
freebsd-ports-gnome-eb337b45c0f2fa8b3dc8a04df893b109423243d5.zip
Don't require interaction on DEINSTALL while PACKAGE_BUILDING.
Diffstat (limited to 'print/xdvi/pkg-deinstall')
-rw-r--r--print/xdvi/pkg-deinstall15
1 files changed, 8 insertions, 7 deletions
diff --git a/print/xdvi/pkg-deinstall b/print/xdvi/pkg-deinstall
index 6a3fcb2b7885..2149add34d40 100644
--- a/print/xdvi/pkg-deinstall
+++ b/print/xdvi/pkg-deinstall
@@ -10,12 +10,13 @@ this file now.
END
-echo -n "do you want to deinstall the package ? [y] "
-read answ; if [ "$answ" = "" ]; then answ=y; fi
-case $answ in
- y*|Y*) break;;
- *) exit 1;;
-esac
+if [ -z ${PACKAGE_BUILDING} ]; then
+ echo -n "do you want to deinstall the package ? [y] "
+ read answ; if [ "$answ" = "" ]; then answ=y; fi
+ case $answ in
+ y*|Y*) break;;
+ *) exit 1;;
+ esac
+fi
exit 0
-