From a328ca0881f58f1afb5133614cb57e3f5a958216 Mon Sep 17 00:00:00 2001 From: CaptainArk Date: Thu, 19 Apr 2018 21:00:23 +0200 Subject: [PATCH] forgot to exit on failure if username is incorrect --- github2email.sh | 1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 github2email.sh diff --git a/github2email.sh b/github2email.sh old mode 100644 new mode 100755 index 96eb186..b24ef88 --- a/github2email.sh +++ b/github2email.sh @@ -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"