Skip to content

Commit

Permalink
Updating CI to reflect website update failures
Browse files Browse the repository at this point in the history
  • Loading branch information
gragghia authored and gragghia committed May 30, 2024
1 parent a326a4f commit 1a6bf3c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hpg-mxp.org/tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ sub getfile {

sub update {
chdir '/var/repo';
print header(), `git pull 2>&1`;
return 1;
my $msg = `git pull 2>&1`;
my $code = $? ? 500 : 200;
print header( -status=>$code, -charset=>'UTF-8' );
print $msg;
}

sub main {
Expand Down

0 comments on commit 1a6bf3c

Please sign in to comment.