Skip to content

Commit 6e6188a

Browse files
committedSep 25, 2017
Update ruby support for High Sierra
Now more flexible to support future releases without change, at least until ruby 3.
1 parent 604baa1 commit 6e6188a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed
 

‎Support/shared/bin/ruby20

+6-7
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
# version of ruby rather than a user-installed future version. It also allows
55
# future customization of the version of ruby or it's environment.
66

7-
if [[ -e /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby ]]; then
8-
exec /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby "$@"
9-
else
10-
"$DIALOG" alert --title "Unable to Run Command" --body "This command requires OS X 10.9 or higher." --button1 "OK" &>/dev/null
11-
12-
exit 200;
13-
fi
7+
for ruby in /System/Library/Frameworks/Ruby.framework/Versions/2.*/usr/bin/ruby; do
8+
[ -e $ruby ] && exec $ruby "$@"
9+
done
10+
11+
"$DIALOG" alert --title "Unable to Run Command" --body "Unsupported system support files, please contact support." --button1 "OK" &>/dev/null
12+
exit 200

0 commit comments

Comments
 (0)
Please sign in to comment.