Skip to content

Commit

Permalink
[backend] allow an array reference as publish hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Apr 10, 2014
1 parent 1537e34 commit 8dd7133
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/backend/bs_publish
Expand Up @@ -1851,8 +1851,10 @@ publishprog_done:
}
}
if ($BSConfig::publishedhook && $BSConfig::publishedhook->{$publish_prp}) {
print " calling published hook $BSConfig::publishedhook->{$publish_prp}\n";
qsystem($BSConfig::publishedhook->{$publish_prp}, $prp, $extrep, @changed) && warn(" $BSConfig::publishedhook->{$publish_prp} failed: $?");
my $hook = $BSConfig::publishedhook->{$publish_prp};
$hook = [ $hook ] unless ref $hook;
print " calling published hook @$hook\n";
qsystem(@$hook, $prp, $extrep, @changed) && warn(" @$hook failed: $?\n");
}

notify('REPO_PUBLISHED', { project => $projid , 'repo' => $repoid });
Expand Down

0 comments on commit 8dd7133

Please sign in to comment.