Skip to content

Commit

Permalink
πŸ“– Open downloaded file if os is darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
murat committed Aug 31, 2017
1 parent 7f7156e commit 5b46eb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tors/search.rb
Expand Up @@ -112,6 +112,7 @@ def download(choice)
puts '😡 There is an error! ' + e.message
ensure
puts 'πŸ₯‚ Downloaded!'
system 'open', target_file if RUBY_PLATFORM =~ /darwin/
end
end
end
Expand Down

0 comments on commit 5b46eb7

Please sign in to comment.