Accept one-letter y/n

Este commit está contenido en:
2025-04-24 22:46:12 -04:00
padre dbf58d14fe
commit d1f69c55f9

Ver fichero

@@ -1801,7 +1801,7 @@ ask_ok() {
((YES_SWITCH)) && return 0
read -n 1 -r -p "$* [y/N]: " response
echo
[[ ${response,,} =~ ^y$ ]]
[[ ${response,,} == y ]]
}
execute() {
if debug "$*"; then