Require y/n in setup.
This commit is contained in:
parent
d3399944b1
commit
01eee56fb7
1 changed files with 4 additions and 1 deletions
3
setup.sh
3
setup.sh
|
@ -16,7 +16,10 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
|
while ! [[ "${ANSWER}" =~ ^[YyNn] ]]
|
||||||
|
do
|
||||||
read -r -p "$1" ANSWER
|
read -r -p "$1" ANSWER
|
||||||
|
done
|
||||||
if [[ "${ANSWER}" =~ ^[Yy] ]]
|
if [[ "${ANSWER}" =~ ^[Yy] ]]
|
||||||
then
|
then
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in a new issue