summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-02-17 22:27:45 -0500
committerJune McEnroe <june@causal.agency>2021-02-17 22:27:45 -0500
commitfdd8e2c3f7721b7f5d9365590d9bb4df5e8490d5 (patch)
tree3cb379e9bcf2a818655397e6c31519a5d654fd26
parentUse curl --url for URL from email (diff)
downloadsrc-fdd8e2c3f7721b7f5d9365590d9bb4df5e8490d5.tar.gz
src-fdd8e2c3f7721b7f5d9365590d9bb4df5e8490d5.zip
Just use pbcopy in up
I have a generic pbcopy wrapper now.
Diffstat (limited to '')
-rw-r--r--bin/up.sh10
1 files changed, 1 insertions, 9 deletions
diff --git a/bin/up.sh b/bin/up.sh
index 9cb77a2b..f55213d4 100644
--- a/bin/up.sh
+++ b/bin/up.sh
@@ -62,14 +62,6 @@ uploadTerminal() {
 	upload "${temp}/term.html"
 }
 
-copy() {
-	if type xsel >/dev/null; then
-		xsel -bi
-	else
-		pbcopy
-	fi
-}
-
 while getopts 'chst' opt; do
 	case "$opt" in
 		(c) fn=uploadCommand;;
@@ -84,5 +76,5 @@ shift $((OPTIND - 1))
 : ${fn:=upload}
 
 url=$($fn "$@")
-printf '%s' "$url" | copy || true
+printf '%s' "$url" | pbcopy || true
 echo "$url"