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.
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.