From 453a5c692b70ec9d55b5739e7af5b4d034798f2b Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 8 Nov 2010 13:06:45 +0000 Subject: Don't open editor if no args passed --- Library/Homebrew/utils.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index f1d62ffe1..7f2001f91 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -113,6 +113,8 @@ def puts_columns items, cols = 4 end def exec_editor *args + return if args.to_s.empty? + editor = ENV['HOMEBREW_EDITOR'] || ENV['EDITOR'] if editor.nil? editor = if system "/usr/bin/which -s mate" -- cgit v1.2.3