utils/ruby.sh: quote HOMEBREW_RUBY_PATH when calling test-ruby

This commit is contained in:
Maxim Belkin 2020-05-15 16:35:42 -05:00
parent f7e0705164
commit 083f56fafe
No known key found for this signature in database
GPG Key ID: AC71560D4C5F2338

View File

@ -57,7 +57,7 @@ If there's no Homebrew Portable Ruby available for your processor:
HOMEBREW_RUBY_PATH="/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby"
else
HOMEBREW_RUBY_PATH=$(type -P ruby)
if [[ $(test-ruby $HOMEBREW_RUBY_PATH) != "true" ]]
if [[ $(test-ruby "$HOMEBREW_RUBY_PATH") != "true" ]]
then
HOMEBREW_RUBY_PATH=$(PATH="$HOMEBREW_PATH" type -P ruby)
if [[ $(test-ruby "$HOMEBREW_RUBY_PATH") != "true" ]]