fix(browse): update sed pattern to work on mac

This commit is contained in:
Beth Skurrie 2020-06-23 09:31:21 +10:00
parent 2076ac9c38
commit edf7b060d2
No known key found for this signature in database
GPG key ID: CFFF9AF606CB1FFA

View file

@ -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}