Merge pull request #17417 from Homebrew/setup_ruby_command_path
cmd/setup-ruby: handle empty command path.
This commit is contained in:
commit
26a07b4cd0
@ -24,14 +24,15 @@ homebrew-setup-ruby() {
|
|||||||
source "${HOMEBREW_LIBRARY}/Homebrew/command_path.sh"
|
source "${HOMEBREW_LIBRARY}/Homebrew/command_path.sh"
|
||||||
|
|
||||||
command_path="$(homebrew-command-path "${command}")"
|
command_path="$(homebrew-command-path "${command}")"
|
||||||
if [[ -n "${command_path}" && "${command_path}" != *"/dev-cmd/"* ]]
|
if [[ -n "${command_path}" ]]
|
||||||
then
|
then
|
||||||
return
|
if [[ "${command_path}" != *"/dev-cmd/"* ]]
|
||||||
fi
|
then
|
||||||
|
return
|
||||||
if ! grep -q "Homebrew.install_bundler_gems\!" "${command_path}"
|
elif ! grep -q "Homebrew.install_bundler_gems\!" "${command_path}"
|
||||||
then
|
then
|
||||||
return
|
return
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user