This commit is contained in:
Thomas Forgione 2019-04-15 17:03:33 +02:00
parent deca83b4b3
commit 1b2b84ea27
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 2 additions and 3 deletions

View File

@ -41,8 +41,7 @@ yes_no_ask_required() {
yes_no_ask() { yes_no_ask() {
echo_green_n $1 "[Y/n]" echo_green_n $1 "[Y/n]"
read -n 1 answer read -n answer
echo_green '\b '
if ! [[ "$answer" == "N" ]] && ! [[ "$answer" == "n" ]]; then if ! [[ "$answer" == "N" ]] && ! [[ "$answer" == "n" ]]; then
return 0 return 0
else else
@ -63,7 +62,7 @@ install() {
return return
fi fi
echo "Distribution not recognized, can't install $1." echo_red "Distribution not recognized, can't install $1."
} }
git_clone() { git_clone() {