소스 검색

Allow command line editor to output to terminal on edit task.

Executing a command with backticks redirects the output to return
it as a string, but this prevents editors like vim from showing the
file being edited.
Dylan Smith 13 년 전
부모
커밋
14d017a031
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/shopify_api/cli.rb

+ 1 - 1
lib/shopify_api/cli.rb

@@ -51,7 +51,7 @@ module ShopifyAPI
       file = config_file(connection)
       if File.exist?(file)
         if ENV['EDITOR'].present?
-          `#{ENV['EDITOR']} #{file}`
+          system(ENV['EDITOR'], file)
         else
           puts "Please set an editor in the EDITOR environment variable"
         end