Skip to content

Commit 05a0767

Browse files
committed
Do not fail if GITHUB_EMAIL is empty from API
1 parent b9a0541 commit 05a0767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git_setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ GITHUB_NICKNAME=$(git remote get-url --push origin | cut -d ":" -f 2 | cut -d "/
1717
GITHUB_EMAIL=$(curl -s https://api.github.com/repos/${GITHUB_NICKNAME}/dotfiles/commits/`git rev-parse HEAD` | jq -r '.commit.author.email')
1818
GIT_EMAIL=$(git config --global user.email)
1919

20-
if [ ${GITHUB_EMAIL} = ${GIT_EMAIL} ]
20+
if [ "${GITHUB_EMAIL}" = "${GIT_EMAIL}" ] || [ -z ${GITHUB_EMAIL} ]
2121
then
2222
echo "👌 Awesome, all set."
2323
else

0 commit comments

Comments
 (0)