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