lib/oplop/cli.rb in oplop-0.0.1 vs lib/oplop/cli.rb in oplop-0.0.2

- old
+ new

@@ -30,12 +30,12 @@ HELP end def self.copy_to_clipboard(string) if (copy_program = `which pbcopy`) && !copy_program.empty? - %x{ echo #{string} | #{copy_program} } + system("echo #{string} | #{copy_program}") elsif (copy_program = `which xclip`) && !copy_program.empty? - %x{ echo #{string} | #{copy_program} } + system("echo #{string} | #{copy_program}") end end end end