Skip to content

Commit

Permalink
Update ruby support for High Sierra
Browse files Browse the repository at this point in the history
Now more flexible to support future releases without change, at least until ruby 3.
  • Loading branch information
infininight committed Sep 25, 2017
1 parent 604baa1 commit 6e6188a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Support/shared/bin/ruby20
Expand Up @@ -4,10 +4,9 @@
# version of ruby rather than a user-installed future version. It also allows
# future customization of the version of ruby or it's environment.

if [[ -e /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby ]]; then
exec /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby "$@"
else
"$DIALOG" alert --title "Unable to Run Command" --body "This command requires OS X 10.9 or higher." --button1 "OK" &>/dev/null

exit 200;
fi
for ruby in /System/Library/Frameworks/Ruby.framework/Versions/2.*/usr/bin/ruby; do
[ -e $ruby ] && exec $ruby "$@"
done

"$DIALOG" alert --title "Unable to Run Command" --body "Unsupported system support files, please contact support." --button1 "OK" &>/dev/null
exit 200

0 comments on commit 6e6188a

Please sign in to comment.