check_brew ran brew list --formula devvm on every install, and Homebrew's
wrapper can download its own Ruby when it runs. The script now looks for
a devvm keg (Cellar/devvm/<version>) in the Cellar next to the brew on
PATH, in HOMEBREW_CELLAR and HOMEBREW_PREFIX/Cellar, and in
/opt/homebrew, /usr/local and /home/linuxbrew/.linuxbrew (brew_prefixes,
which the tests set). --force and the refusal stay as they were.
path_hint resolves paths with readlink -f --, so a PATH entry starting
with a dash isn't read as an option.
Tests: install.txtar's brew stub only logs; a Cellar folder fixture
stands for the keg (next to brew, HOMEBREW_CELLAR, HOMEBREW_PREFIX, a
usual prefix, an empty rack, no brew on PATH), and brew is never run.
Co-Authored-By: Claude Opus 5.5 <[email protected]>