"vscode:/vscode.git/clone" did not exist on "86126233bb5bb99ced64b95c16a4e4ed776fd8de"
Commit 5cd7ad38 authored by kennyklee's avatar kennyklee Committed by Marc Cornellà
Browse files

Fix regex for optional http(s), and variable reference inside osascript.

parent cff228e3
...@@ -7,8 +7,8 @@ droplr() { ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment