[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
This commit is contained in:
Junegunn Choi
2026-05-28 23:02:34 +09:00
parent 5ef8dea36e
commit a50619388d
+1 -1
View File
@@ -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