Browse Source

chore(install): option case matching (#12881)

Gurram Siddarth Reddy 4 weeks ago
parent
commit
22ec00d1f6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/install.sh

+ 2 - 2
tools/install.sh

@@ -399,8 +399,8 @@ EOF
     "$FMT_YELLOW" "$FMT_RESET"
     "$FMT_YELLOW" "$FMT_RESET"
   read -r opt
   read -r opt
   case $opt in
   case $opt in
-    y*|Y*|"") ;;
-    n*|N*) echo "Shell change skipped."; return ;;
+    [Yy]*|"") ;;
+    [Nn]*) echo "Shell change skipped."; return ;;
     *) echo "Invalid choice. Shell change skipped."; return ;;
     *) echo "Invalid choice. Shell change skipped."; return ;;
   esac
   esac