Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Get proper version strings from environment, fixes #6.

  • Loading branch information...
commit 7dc7d6c949492c0ede2eb56a9ef6a98243454095 1 parent 4040eb7
@infininight infininight authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Commands/Check ERB Syntax.plist
View
2  Commands/Check ERB Syntax.plist
@@ -7,7 +7,7 @@
<key>command</key>
<string>#!/usr/bin/env ruby
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'
-puts "using ruby-" + RUBY_VERSION.to_s + ' / erb'
+puts "Using " + `"${TM_RUBY:=ruby}" -e'puts "ruby-" + RUBY_VERSION.to_s'`.chomp + " / " + `"${TM_ERB:=erb}" --version 2&gt;&amp;1`.chomp
result = `"${TM_ERB:=erb}" -T - -x | "${TM_RUBY:=ruby}" -c 2&gt;&amp;1`
puts result
TextMate.go_to :line =&gt; $1 if result =~ /-:(\d+):/</string>
Please sign in to comment.
Something went wrong with that request. Please try again.