Created
April 14, 2012 21:47
-
-
Save gandaro/2388025 to your computer and use it in GitHub Desktop.
Small script that I configured as "Copy Dropbox link" action in Thunar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
url=$(dropbox puburl "$1") | |
if [[ "$url" == http* ]]; then | |
echo -n $url | sed s/http/https/ | xclip -selection clipboard | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment