Skip to content
Browse files

SwitchCommand#create? handles spaces in ENV['TM_SUPPORT_PATH']

  • Loading branch information...
1 parent 26c53d2 commit a02391e130ca7813fd986453104515072efe4404 @george george committed with
Showing with 1 addition and 1 deletion.
  1. +1 −1 Support/lib/spec/mate/switch_command.rb
View
2 Support/lib/spec/mate/switch_command.rb
@@ -78,7 +78,7 @@ def file_type(path)
end
def create?(relative_twin, file_type)
- answer = `#{ ENV['TM_SUPPORT_PATH'] }/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog yesno-msgbox --no-cancel --icon document --informative-text "#{relative_twin}" --text "Create missing #{file_type}?"`
+ answer = `'#{ ENV['TM_SUPPORT_PATH'] }/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog' yesno-msgbox --no-cancel --icon document --informative-text "#{relative_twin}" --text "Create missing #{file_type}?"`
answer.to_s.chomp == "1"
end

0 comments on commit a02391e

Please sign in to comment.
Something went wrong with that request. Please try again.