From 681b68d020ad3c9e47fa1d8c2c1c15368cdfbcc0 Mon Sep 17 00:00:00 2001 From: Steve Price Date: Sun, 4 Jul 1999 21:41:46 +0000 Subject: Don't require interaction on DEINSTALL while PACKAGE_BUILDING. --- print/xdvi/pkg-deinstall | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'print/xdvi') 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 - -- cgit v1.2.3