deforaos-git-hook: do not queue unavailable jobs
This commit is contained in:
parent
d68ac0e3c5
commit
82e91d8eaf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user