From 7679ea3f6169fa7263ee72e2b6b584551011e9cc Mon Sep 17 00:00:00 2001 From: CaptainArk Date: Thu, 19 Apr 2018 23:54:14 +0200 Subject: [PATCH] fixing how the project that has to be removed is defined --- github2email.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github2email.sh b/github2email.sh index 5a46137..467289e 100755 --- a/github2email.sh +++ b/github2email.sh @@ -50,8 +50,8 @@ AddedProjects="$(r2e list | grep g2e_ | grep -Eo "https://github.com/.*/releases for Projects in ${AddedProjects}; do StillStaredProject="$(grep ${Projects} ${TempFile})" if [[ -z ${StillStaredProject} ]]; then - ProjectToRemove=${StillStaredProject%,*} - r2e delete ${ProjectToRemove} + ProjectToRemove="$(echo ${Projects} | cut -d'/' -f5)" + r2e delete g2e_${ProjectToRemove} echo "Project ${ProjectToRemove} has been removed from rss2email configuration !" fi done