summaryrefslogtreecommitdiff
path: root/.local/bin/dbshare
blob: fdb9be29f5af76d1258fbd85561d6ffe2a101add (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

output="$(dropbox-cli sharelink $1)"


case "$output" in
	https*)
		echo "$output" | xsel -b
		notify-send -a " Dropbox" "Your file $1 can now be shared. It's url is:
$output
It has been copied to your clipboard." ;;
	*)
		notify-send -a " Dropbox" "ERROR:
Your file could not be shared.
$output" ;;
esac