Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Gaetan Semet 2016-10-23 23:49:29 +02:00
commit 264108ccae
5 changed files with 36 additions and 29 deletions

View file

@ -7,8 +7,8 @@ droplr() {
return 1
fi
if [[ "$1" =~ ^http[|s]:// ]]; then
osascript -e "tell app 'Droplr' to shorten '$1'"
if [[ "$1" =~ ^https?:// ]]; then
osascript -e 'tell app "Droplr" to shorten "'"$1"'"'
else
open -ga /Applications/Droplr.app "$1"
fi