From a50619388d76832a18b4fc0db9d61f8dd5e3b518 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 28 May 2026 23:02:34 +0900 Subject: [PATCH] [install] Fix empty-shell detection in install script ${#shells} is the string length, not the shell count. Thanks to @matheus-pacifico for the report. Close #4813 --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index 4102aa12..cab81768 100755 --- a/install +++ b/install @@ -233,7 +233,7 @@ for s in $shells; do fi done -if [[ ${#shells} -lt 3 ]]; then +if [[ -z "${shells// /}" ]]; then echo "No shell configuration to be updated." exit 0 fi