diff --git a/devel/branch2obs.sh b/devel/branch2obs.sh index 78eb7f6b30..ad4d1afe15 100755 --- a/devel/branch2obs.sh +++ b/devel/branch2obs.sh @@ -112,7 +112,7 @@ if [ -n "$CLEANUP" ] || [ -n "$OBSOLETE" ]; then config=$(gh -R "$repo_slug" variable get OBS_PROJECTS 2> /dev/null) if [ -n "$config" ]; then # remove the mapping for the deleted project - echo "$config" | jq "del(.[\"$project\"])" | gh -R "$repo_slug" variable set OBS_PROJECTS + echo "$config" | jq "del(.[\"$branch_name\"])" | gh -R "$repo_slug" variable set OBS_PROJECTS fi else echo "Found obsolete project: $project"