Skip to content

Commit

Permalink
Initial port to e. Works, but crashes on return from website. Related…
Browse files Browse the repository at this point in the history
…: why was

Annotate/Blame deleted? I bet it's an illegal file name.

Signed-off-by: Dr Nic Williams <drnicwilliams@gmail.com>
  • Loading branch information
4rc0s authored and drnic committed Dec 22, 2008
1 parent af9d355 commit a2e717d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Support/lib/gist.rb 100644 → 100755
Expand Up @@ -29,9 +29,12 @@ def copy(content)
when /linux/
return content if `which xclip`.strip == ''
IO.popen('xclip', 'r+') { |clip| clip.puts content }
end

content
when /i386-cygwin/
return content if `which putclip`.strip == ''
IO.popen('putclip', 'r+') { |clip| clip.puts content }
end

content
end

def data(name, ext, content, private_gist)
Expand Down

0 comments on commit a2e717d

Please sign in to comment.