Installed rbenv via Homebrew, and saved the rbenv-doctor script locally. Running rbenv doctor results in the following rbenv doctor output:
Checking for `rbenv' in PATH: multiple
You seem to have multiple rbenv installs in the following locations.
Please pick just one installation and remove the others.
/usr/local/Cellar/rbenv/1.2.0/libexec/rbenv
/usr/local/bin/rbenv
In this case /usr/local/bin/rbenv is a symlink to /usr/local/Cellar/rbenv/1.2.0/libexec/rbenv.
The validation logic should check for symlinks, and check against the link's target path.
Update:
Running the script directly as per the README (curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash) results in a single path for rbenv.