1
0
mirror of https://github.com/captainark/github2email.git synced 2024-11-22 00:31:42 +01:00

fixing how the project that has to be removed is defined

This commit is contained in:
CaptainArk 2018-04-19 23:54:14 +02:00
parent 749912641f
commit 7679ea3f61

View File

@ -50,8 +50,8 @@ AddedProjects="$(r2e list | grep g2e_ | grep -Eo "https://github.com/.*/releases
for Projects in ${AddedProjects}; do for Projects in ${AddedProjects}; do
StillStaredProject="$(grep ${Projects} ${TempFile})" StillStaredProject="$(grep ${Projects} ${TempFile})"
if [[ -z ${StillStaredProject} ]]; then if [[ -z ${StillStaredProject} ]]; then
ProjectToRemove=${StillStaredProject%,*} ProjectToRemove="$(echo ${Projects} | cut -d'/' -f5)"
r2e delete ${ProjectToRemove} r2e delete g2e_${ProjectToRemove}
echo "Project ${ProjectToRemove} has been removed from rss2email configuration !" echo "Project ${ProjectToRemove} has been removed from rss2email configuration !"
fi fi
done done