diff --git a/github2email.sh b/github2email.sh index 81fea45..5a46137 100755 --- a/github2email.sh +++ b/github2email.sh @@ -49,10 +49,10 @@ done AddedProjects="$(r2e list | grep g2e_ | grep -Eo "https://github.com/.*/releases.atom")" for Projects in ${AddedProjects}; do StillStaredProject="$(grep ${Projects} ${TempFile})" - if [[ -z $StillStaredProject ]]; then + if [[ -z ${StillStaredProject} ]]; then ProjectToRemove=${StillStaredProject%,*} r2e delete ${ProjectToRemove} - echo "Project ${ProjectName} has been removed from rss2email configuration !" + echo "Project ${ProjectToRemove} has been removed from rss2email configuration !" fi done