From e018fdb51deeb595dc743e4d78731885621e18d1 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Tue, 3 Nov 2009 02:01:32 +0000 Subject: [PATCH] =?UTF-8?q?Converting=20the=20rest=20of=20the=20=E2=80=9CR?= =?UTF-8?q?un=E2=80=9D=20commands=20to=20#!.=20=20None=20of=20the=20Run=20?= =?UTF-8?q?Script=20commands=20source=20bash=5Finit.sh=20anymore.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.textmate.org/trunk/Bundles/Io.tmbundle@11798 dfb7d73b-c2ec-0310-8fea-fb051d288c6d --- Commands/Run Script.tmCommand | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Commands/Run Script.tmCommand b/Commands/Run Script.tmCommand index 5c517ad..4d9a0e1 100644 --- a/Commands/Run Script.tmCommand +++ b/Commands/Run Script.tmCommand @@ -5,14 +5,15 @@ beforeRunningCommand nop command - $(type -p "${TM_RUBY:-ruby}") -e' + #!/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 => ["2>&1", "<<< \"System version; System exit;\""])'<&0 +TextMate::Executor.run(ENV["TM_IO"] || "io", ENV["TM_FILEPATH"], :version_args => ["2>&1", '<<< "System version; System exit;"']) + input document keyEquivalent