Skip to content

Commit

Permalink
use system()s boolean return value on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Feb 28, 2010
1 parent b8f3632 commit 429d46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/gist
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ module Gist
return content unless system("which xclip 2> /dev/null")
IO.popen('xclip -sel clip', 'r+') { |clip| clip.print content }
when /i386-cygwin/
return content if `which putclip`.strip == ''
return content unless system("which putclip")
IO.popen('putclip', 'r+') { |clip| clip.print content }
end

Expand Down

0 comments on commit 429d46b

Please sign in to comment.