deforaos-git-hook: fix matching tags and projects

This commit is contained in:
Pierre Pronchery 2022-04-12 21:24:04 +02:00
parent 0634732258
commit 22c9593d1d

View File

@ -95,11 +95,12 @@ _jobs_tag()
{( {(
tag="$1" tag="$1"
repository="$2" repository="$2"
project="${repository##*/}"
res=0 res=0
[ -z "$JOBS_TAG_RELEASE" ] && return 0 [ -z "$JOBS_TAG_RELEASE" ] && return 0
case "$tag" in case "$tag" in
${repository}_*-*-*) ${project}_*-*-*)
for job in $JOBS_TAG_RELEASE; do for job in $JOBS_TAG_RELEASE; do
#warn if the job is not available #warn if the job is not available
if [ ! -x "$job" ]; then if [ ! -x "$job" ]; then