summaryrefslogtreecommitdiff
path: root/.local/bin/dbshare
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-10-26 00:38:53 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2020-10-26 00:38:53 -0400
commitbdbd07823796973d11536dc05dc1cf7bb11f2341 (patch)
treedc09fed7f0f5bc9e7e6d6035c6856d1bd6befdb2 /.local/bin/dbshare
parent7879ffd66844128ccb20dd6b763658e1016856fe (diff)
moving to pia as a vpn provider
Diffstat (limited to '.local/bin/dbshare')
-rwxr-xr-x.local/bin/dbshare4
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/bin/dbshare b/.local/bin/dbshare
index 817fe8c..fdb9be2 100755
--- a/.local/bin/dbshare
+++ b/.local/bin/dbshare
@@ -2,6 +2,7 @@
output="$(dropbox-cli sharelink $1)"
+
case "$output" in
https*)
echo "$output" | xsel -b
@@ -10,5 +11,6 @@ $output
It has been copied to your clipboard." ;;
*)
notify-send -a " Dropbox" "ERROR:
-Your file could not be shared." ;;
+Your file could not be shared.
+$output" ;;
esac