Skip to content

Commit

Permalink
open in browser only if -b option was given
Browse files Browse the repository at this point in the history
  • Loading branch information
korny committed Feb 20, 2016
1 parent db5d066 commit ce4fe3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/water.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ def water diff
end

def open_diff_file file_path
Launchy.open "file://#{file_path.expand_path}"
Launchy.open "file://#{file_path.expand_path}" if ARGV.include? '-b'
end
end

0 comments on commit ce4fe3a

Please sign in to comment.