lib/command/open_console.rb in cpl-1.4.0 vs lib/command/open_console.rb in cpl-2.2.0

- old
+ new

@@ -16,11 +16,11 @@ def call workload = config.options[:workload] url = "https://console.cpln.io/console/org/#{config.org}/gvc/#{config.app}" url += "/workload/#{workload}" if workload url += "/-info" - opener = `which xdg-open open`.split("\n").grep_v("not found").first + opener = Shell.cmd("which", "xdg-open", "open")[:output].split("\n").grep_v("not found").first - exec %(#{opener} "#{url}") + Kernel.exec(opener, url) end end end