forked from extern/ohmyzsh
Fix regex for optional http(s), and variable reference inside osascript.
This commit is contained in:
parent
cff228e342
commit
5cd7ad38cb
@ -7,8 +7,8 @@ droplr() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" =~ ^http[|s]:// ]]; then
|
if [[ "$1" =~ ^https?:// ]]; then
|
||||||
osascript -e "tell app 'Droplr' to shorten '$1'"
|
osascript -e 'tell app "Droplr" to shorten "'"$1"'"'
|
||||||
else
|
else
|
||||||
open -ga /Applications/Droplr.app "$1"
|
open -ga /Applications/Droplr.app "$1"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user