Fix brew-publish script that's part of release process

[ci skip]
This commit is contained in:
Mislav Marohnić 2014-09-08 15:48:38 -07:00
parent 512910a675
commit aaf50ec655

View file

@ -16,7 +16,7 @@ fi
if [ -n "$3" ]; then
gh_project="github.com/${3}"
else
gh_project="$(git remote -v | grep '^origin' | grep -oE 'github.com[:/][^/]+/[^/ ]+')"
gh_project="$(git remote -v | grep '^origin' | grep -oE 'github.com[:/][^/]+/[^/ ]+' | head -1)"
gh_project="${gh_project%.git}"
fi