exe/mnogootex in mnogootex-0.2.0 vs exe/mnogootex in mnogootex-0.2.1

- old
+ new

@@ -25,10 +25,10 @@ if ARGV.length == 3 raise "Unknown command." unless %w{show view open}.include? ARGV[1].downcase job = Mnogootex::Job.new cls: ARGV[2], target: File.expand_path(target) pdf = Dir.glob("#{job.tmp_dirname}/*.pdf").first raise "PDF non esiste." unless File.exist? pdf - `open #{pdf}` + `command -v open >/dev/null && open #{pdf} || xdg-open #{pdf}` exit end puts "Mnogootex v#{Mnogootex::VERSION}"