Explorar el Código

Accept one-letter y/n

bryan hace 1 día
padre
commit
d1f69c55f9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      installJRMC

+ 1 - 1
installJRMC

@@ -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