Skip to content

Commit

Permalink
tighter which check
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Mar 1, 2010
1 parent ca20f76 commit 8e80c38
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 @@ -117,11 +117,11 @@ def browse(url)
# Tries to copy passed content to the clipboard.
def copy(content)
cmd = case true
when system("which pbcopy > /dev/null")
when system("which pbcopy &> /dev/null")
:pbcopy
when system("which xclip > /dev/null")
when system("which xclip &> /dev/null")
:xclip
when system("which putclip")
when system("which putclip &> /dev/null")
:putclip
end

Expand Down

0 comments on commit 8e80c38

Please sign in to comment.