Merge pull request #32 from gilbertwong96/fix/fish-doctor-version-check

fix: run doctor version checks under fish
This commit is contained in:
Federico Jaramillo Martinez
2026-06-25 14:47:34 +02:00
committed by GitHub
3 changed files with 92 additions and 7 deletions
@@ -0,0 +1,9 @@
---
"@jmfederico/pi-web": patch
---
Fix `pi-web doctor` "can find npm/pi" checks on fish. The `--version` check
wrapped the version command in a POSIX subshell `(cmd --version 2>&1 || true)`,
which fish parses as a command substitution in command position and rejects
(`command substitutions not allowed in command position`), producing a false
negative. Emit fish's `begin; ...; end` grouping when the service shell is fish.