dxc-technology / online-devops-dojo

DevOps hands-on learning modules in your browser
https://dxc-technology.github.io/about-devops-dojo/
Mozilla Public License 2.0
61 stars 32 forks source link

if .email is null then do not return the string 'null' #59

Closed max-boehm closed 4 years ago

max-boehm commented 4 years ago

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. The jq -r '.email' command returns the string "null" and with this fix it returns an empty string (as intended).

Types of changes