mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
fix(browse): update sed pattern to work on mac
This commit is contained in:
parent
2076ac9c38
commit
edf7b060d2
|
|
@ -22,7 +22,7 @@ fi
|
|||
|
||||
if [[ $remote_url = git@* ]]
|
||||
then
|
||||
url=$(echo $remote_url | sed -E -e 's/:/\//' -e 's/\.git$//' -e 's/\w*@(.*)/http:\/\/\1/')
|
||||
url=$(echo $remote_url | sed -E -e 's/:/\//' -e 's/\.git$//' -e 's/.*@(.*)/http:\/\/\1/')
|
||||
elif [[ $remote_url = http* ]]
|
||||
then
|
||||
url=${remote_url%.git}
|
||||
|
|
|
|||
Loading…
Reference in a new issue