Commit 6e6188a 1 parent 604baa1 commit 6e6188a Copy full SHA for 6e6188a
File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 4
4
# version of ruby rather than a user-installed future version. It also allows
5
5
# future customization of the version of ruby or it's environment.
6
6
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
You can’t perform that action at this time.
0 commit comments