fixup gitkit openhub

parent cb79af35
......@@ -83,10 +83,10 @@ case ${1} in
openhub)
if [[ -d .git ]]; then
git remote -v | grep fetch | \
repo_url=$(git remote -v | grep fetch | \
sed 's/\(.*github.com\)[:|/]\(.*\).git (fetch)/\2/' | \
awk {'print "https://github.com/" $1'} | \
(xargs x-www-browser &) || echo "not a github repository"
awk {'print "https://github.com/" $1'})
(xargs x-www-browser "${repo_url}" &) || echo "not a github repository"
else echo "current directory is not the root of a git repository"
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