Adjust install prompt

Now reads: "Install to $prefix? [y/N]" to indicate that the default
choice if pressing enter without any extra input will be no. Suggested
by #169.
This commit is contained in:
Alex Smith 2019-08-11 10:13:04 +01:00
parent 509ae3593a
commit 30ae8d71f0

View File

@ -33,7 +33,7 @@ ninja
# Verify user wants to install
set +x
if [ "$TRAVIS" != "true" ]; then
read -p "Install to $prefix? [Yy] " -r
read -p "Install to $prefix? [y/N] " -r
[[ $REPLY =~ ^[Yy]$ ]]
fi
set -x