Make the default answer for running an older uninstaller "yes".

This makes it behave more like the Windows installer, where the default
is to remove an older installation, which most people want to do anyway.
This commit is contained in:
Eli Barzilay 2011-10-10 21:24:17 -04:00
parent abf722f19a
commit 08e70c5e45

View File

@ -454,13 +454,13 @@ fi
if test -x "$bindir/racket-uninstall"; then if test -x "$bindir/racket-uninstall"; then
echo "A previous Racket uninstaller is found at" echo "A previous Racket uninstaller is found at"
echo " \"$bindir/racket-uninstall\"," echo " \"$bindir/racket-uninstall\","
echon " should I run it? (default: no) " echon " should I run it? (default: yes) "
read R read R
case "$R" in case "$R" in
[yY]* ) echon " running uninstaller..." [nN]* ) failwith "abort..." ;;
* ) echon " running uninstaller..."
"$bindir/racket-uninstall" || failwith "problems during uninstall" "$bindir/racket-uninstall" || failwith "problems during uninstall"
echo " done." ;; echo " done." ;;
* ) failwith "abort..." ;;
esac esac
fi fi