yes to remove archroot by default, accept all variants of yes
This commit is contained in:
parent
500e9fcf59
commit
fca1dce3b9
|
@ -114,8 +114,8 @@ clean_archroot() {
|
||||||
log "Your /archroot directory contains a stale installation or other data."
|
log "Your /archroot directory contains a stale installation or other data."
|
||||||
log "Remove it?"
|
log "Remove it?"
|
||||||
local response
|
local response
|
||||||
read -p '(yes or [no]) ' response
|
read -p '([yes] or no) ' response
|
||||||
if [ "${response}" = "yes" ]; then
|
if [[ "yes" == "${response}"* ]]; then
|
||||||
prompted=true
|
prompted=true
|
||||||
else
|
else
|
||||||
break
|
break
|
||||||
|
@ -134,7 +134,7 @@ install_haveged() {
|
||||||
log "to speed it up?"
|
log "to speed it up?"
|
||||||
local response
|
local response
|
||||||
read -p '([yes] or no) ' response
|
read -p '([yes] or no) ' response
|
||||||
if [ "${response}" = "yes" ] || [ -z "${response}" ]; then
|
if [[ "yes" == "${response}"* ]]; then
|
||||||
apt-get -y install haveged
|
apt-get -y install haveged
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue