From fca1dce3b99f350f9b9115b4d6958530e3512b35 Mon Sep 17 00:00:00 2001 From: gh2o Date: Thu, 24 Jul 2014 22:46:27 -0700 Subject: [PATCH] yes to remove archroot by default, accept all variants of yes --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 0abec6e..6b734ee 100755 --- a/install.sh +++ b/install.sh @@ -114,8 +114,8 @@ clean_archroot() { log "Your /archroot directory contains a stale installation or other data." log "Remove it?" local response - read -p '(yes or [no]) ' response - if [ "${response}" = "yes" ]; then + read -p '([yes] or no) ' response + if [[ "yes" == "${response}"* ]]; then prompted=true else break @@ -134,7 +134,7 @@ install_haveged() { log "to speed it up?" local response read -p '([yes] or no) ' response - if [ "${response}" = "yes" ] || [ -z "${response}" ]; then + if [[ "yes" == "${response}"* ]]; then apt-get -y install haveged fi }