Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Converting the rest of the “Run” commands to #!. None of the Run Scri…

…pt commands source bash_init.sh anymore.

git-svn-id: http://svn.textmate.org/trunk/Bundles/Io.tmbundle@11798 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit e018fdb51deeb595dc743e4d78731885621e18d1 1 parent c7989f8
AJ Ross lasersox authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 Commands/Run Script.tmCommand
5 Commands/Run Script.tmCommand
View
@@ -5,14 +5,15 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>$(type -p "${TM_RUBY:-ruby}") -e'
+ <string>#!/usr/bin/env ruby
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/executor"
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/save_current_document"
TextMate.save_current_document
TextMate::Executor.make_project_master_current_document
-TextMate::Executor.run(ENV["TM_IO"] || "io", ENV["TM_FILEPATH"], :version_args =&gt; ["2&gt;&amp;1", "&lt;&lt;&lt; \"System version; System exit;\""])'&lt;&amp;0</string>
+TextMate::Executor.run(ENV["TM_IO"] || "io", ENV["TM_FILEPATH"], :version_args =&gt; ["2&gt;&amp;1", '&lt;&lt;&lt; "System version; System exit;"'])
+</string>
<key>input</key>
<string>document</string>
<key>keyEquivalent</key>
Please sign in to comment.
Something went wrong with that request. Please try again.