diff options
author | steve <steve@FreeBSD.org> | 1999-07-04 21:41:46 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-07-04 21:41:46 +0000 |
commit | eb337b45c0f2fa8b3dc8a04df893b109423243d5 (patch) | |
tree | 05c8116183115152b7ed7fb55238dd05c612ca9c /print | |
parent | 5b6708776618691d375e8ac1e2fa25df6e54ae80 (diff) | |
download | FreeBSD-ports-eb337b45c0f2fa8b3dc8a04df893b109423243d5.zip FreeBSD-ports-eb337b45c0f2fa8b3dc8a04df893b109423243d5.tar.gz |
Don't require interaction on DEINSTALL while PACKAGE_BUILDING.
Diffstat (limited to 'print')
-rw-r--r-- | print/xdvi/pkg-deinstall | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/print/xdvi/pkg-deinstall b/print/xdvi/pkg-deinstall index 6a3fcb2..2149add 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 - |