dbshare (324B) - raw


      1 #!/bin/bash
      2 
      3 output="$(dropbox-cli sharelink $1)"
      4 
      5 
      6 case "$output" in
      7 	https*)
      8 		echo "$output" | xsel -b
      9 		notify-send -a " Dropbox" "Your file $1 can now be shared. It's url is:
     10 $output
     11 It has been copied to your clipboard." ;;
     12 	*)
     13 		notify-send -a " Dropbox" "ERROR:
     14 Your file could not be shared.
     15 $output" ;;
     16 esac