Explorar o código

Accept one-letter y/n

bryan hai 1 mes
pai
achega
d1f69c55f9
Modificáronse 1 ficheiros con 1 adicións e 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