This is a small fix for the case that a user does not have an email address defined in his github profile. In that case the json from the github api contains "email": null which was not correctly handled by the script. The jq -r '.email' command returns the string "null" and with this fix it returns an empty string (as intended).
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
Proposed changes
This is a small fix for the case that a user does not have an email address defined in his github profile. In that case the json from the github api contains
"email": null
which was not correctly handled by the script. Thejq -r '.email'
command returns the string"null"
and with this fix it returns an empty string (as intended).Types of changes