diff --git a/tools/clipboard b/tools/clipboard index 7b088d4a..2729c2b1 100755 --- a/tools/clipboard +++ b/tools/clipboard @@ -1,6 +1,6 @@ #!/usr/bin/env bash read contents -if [[ -x `which wl-copy` ]]; then +if [[ -x `which wl-copy > /dev/null 2>&1` ]]; then echo "$contents" | wl-copy else echo "$contents" | xclip -selection clipboard