utils/ruby.sh: add explanatory comments
This commit is contained in:
parent
dcc486fa9e
commit
8dcb1636ce
@ -50,7 +50,7 @@ If there's no Homebrew Portable Ruby available for your processor:
|
|||||||
then
|
then
|
||||||
HOMEBREW_RUBY_PATH="/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby"
|
HOMEBREW_RUBY_PATH="/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby"
|
||||||
else
|
else
|
||||||
IFS=$'\n'
|
IFS=$'\n' # Do word splitting on new lines only
|
||||||
for ruby_exec in $(which -a ruby) $(PATH=$HOMEBREW_PATH which -a ruby)
|
for ruby_exec in $(which -a ruby) $(PATH=$HOMEBREW_PATH which -a ruby)
|
||||||
do
|
do
|
||||||
if [[ $(test-ruby "$ruby_exec") == "true" ]]; then
|
if [[ $(test-ruby "$ruby_exec") == "true" ]]; then
|
||||||
@ -58,7 +58,7 @@ If there's no Homebrew Portable Ruby available for your processor:
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
IFS=$' \t\n'
|
IFS=$' \t\n' # Restore IFS to its default value
|
||||||
[[ -z $HOMEBREW_RUBY_PATH ]] && onoe "Failed to find usable Ruby $required_ruby_version!"
|
[[ -z $HOMEBREW_RUBY_PATH ]] && onoe "Failed to find usable Ruby $required_ruby_version!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user