forgot to exit on failure if username is incorrect

This commit is contained in:
CaptainArk 2018-04-19 21:00:23 +02:00
parent 05bb181348
commit a328ca0881
1 changed files with 1 additions and 0 deletions

1
github2email.sh Normal file → Executable file
View File

@ -6,6 +6,7 @@ source "$(dirname $0)/config"
# Checking if UserName has been defined
if [[ -z ${UserName} ]] || [[ $UserName == "changemeplease" ]]; then
echo "GitHub username is incorrect of undefined in config file. Exiting..."
exit 2
fi
GitHubApi="https://api.github.com/users/${UserName}/starred"