Browse files

I know it's crazy, but sometimes I've got whitespace in my paths

  • Loading branch information...
1 parent 59c164b commit 4b3c339fb93a58e7f205b049bd88b7df235e56f0 @beaucollins beaucollins committed with Apr 22, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 Commands/Private Gist.tmCommand
  2. +1 −1 Commands/Public Gist.tmCommand
View
2 Commands/Private Gist.tmCommand
@@ -10,7 +10,7 @@
require 'net/http'
require 'uri'
-contents = `/usr/bin/env cat #{ENV['TM_FILEPATH']}` unless ENV['TM_SELECTED_TEXT']
+contents = `/usr/bin/env cat "#{ENV['TM_FILEPATH']}"` unless ENV['TM_SELECTED_TEXT']
login = `#{ENV['TM_GIT'] || "/usr/bin/env git"} config --global --get github.user`.chomp
token = `#{ENV['TM_GIT'] || "/usr/bin/env git"} config --global --get github.token`.chomp
View
2 Commands/Public Gist.tmCommand
@@ -10,7 +10,7 @@
require 'net/http'
require 'uri'
-contents = `/usr/bin/env cat #{ENV['TM_FILEPATH']}` unless ENV['TM_SELECTED_TEXT']
+contents = `/usr/bin/env cat "#{ENV['TM_FILEPATH']}"` unless ENV['TM_SELECTED_TEXT']
login = `#{ENV['TM_GIT'] || "/usr/bin/env git"} config --global --get github.user`.chomp
token = `#{ENV['TM_GIT'] || "/usr/bin/env git"} config --global --get github.token`.chomp

0 comments on commit 4b3c339

Please sign in to comment.