mirror of
https://github.com/captainark/github2email.git
synced 2024-12-22 10:58:00 +01:00
forgot to exit on failure if username is incorrect
This commit is contained in:
parent
05bb181348
commit
a328ca0881
1
github2email.sh
Normal file → Executable file
1
github2email.sh
Normal file → Executable 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"
|
||||
|
Loading…
Reference in New Issue
Block a user