From 82e91d8eafe09d07ad9e8ee5c7d28198f2725719 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 12 Apr 2022 19:07:52 +0200 Subject: [PATCH] deforaos-git-hook: do not queue unavailable jobs --- src/deforaos-git-hook | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/deforaos-git-hook b/src/deforaos-git-hook index 9844f46..c650066 100755 --- a/src/deforaos-git-hook +++ b/src/deforaos-git-hook @@ -76,7 +76,10 @@ _jobs_branch() if [ "$branch" = "master" -a -n "$JOBS_BRANCH_MASTER" ]; then for job in $JOBS_BRANCH_MASTER; do #warn if the job is not available - [ -x "$job" ] || _error "$job: Job not available" + if [ ! -x "$job" ]; then + _error "$job: Job not available" + continue + fi $DEFORAOS_JOBS add "$job $repository" || res=2 done fi