utils/ruby.sh: add explanatory comments

This commit is contained in:
Maxim Belkin 2020-05-20 12:29:45 -05:00
parent dcc486fa9e
commit 8dcb1636ce
No known key found for this signature in database
GPG Key ID: AC71560D4C5F2338

View File

@ -50,7 +50,7 @@ If there's no Homebrew Portable Ruby available for your processor:
then
HOMEBREW_RUBY_PATH="/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby"
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)
do
if [[ $(test-ruby "$ruby_exec") == "true" ]]; then
@ -58,7 +58,7 @@ If there's no Homebrew Portable Ruby available for your processor:
break
fi
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!"
fi