mirror of
https://github.com/captainark/github2email.git
synced 2024-11-22 00:31:42 +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
|
# Checking if UserName has been defined
|
||||||
if [[ -z ${UserName} ]] || [[ $UserName == "changemeplease" ]]; then
|
if [[ -z ${UserName} ]] || [[ $UserName == "changemeplease" ]]; then
|
||||||
echo "GitHub username is incorrect of undefined in config file. Exiting..."
|
echo "GitHub username is incorrect of undefined in config file. Exiting..."
|
||||||
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GitHubApi="https://api.github.com/users/${UserName}/starred"
|
GitHubApi="https://api.github.com/users/${UserName}/starred"
|
||||||
|
Loading…
Reference in New Issue
Block a user