lvivier / step-gh-pages

deploy github pages with wercker
37 stars 35 forks source link

added lowercase repo name compatibility #14

Closed SF-Zhou closed 3 years ago

SF-Zhou commented 7 years ago

Added lowercase repo name compatibility. For example, my GitHub account name is "SF-Zhou", and the GitHub Pages repo name is "sf-zhou.github.io" (I prefer lowercase url😄), and the branch should be "master".

In previous run.sh script, the command echo "$repo" | grep -qE "$WERCKER_GIT_OWNER\/$WERCKER_GIT_OWNER\.github\.(io|com)" won't return 0 in such situation, so the branch will be "gh-pages".

I convert the repo name and the git owner name to lowercase using tr, so the final result will be correct.