Skip to content

Commit

Permalink
silence!
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed May 18, 2010
1 parent c7383dc commit 6cbf657
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/gist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ def browse(url)
# Tries to copy passed content to the clipboard.
def copy(content)
cmd = case true
when system("type pbcopy > /dev/null")
when system("type pbcopy > /dev/null 2>&1")
:pbcopy
when system("type xclip > /dev/null")
when system("type xclip > /dev/null 2>&1")
:xclip
when system("type putclip > /dev/null")
when system("type putclip > /dev/null 2>&1")
:putclip
end

Expand Down

0 comments on commit 6cbf657

Please sign in to comment.