Skip to content

Commit

Permalink
Merge pull request #348 from mauke/patch-1
Browse files Browse the repository at this point in the history
fix exit status
  • Loading branch information
briandfoy authored Nov 24, 2023
2 parents ae511f5 + 2b496ed commit cc94b0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ else {
install_files();
}

exit $Errors == 0 ? 0 : 1;
exit($Errors == 0 ? 0 : 1);

sub modify_file {
my($path,$mode,$st) = @_;
Expand Down
2 changes: 1 addition & 1 deletion bin/patch
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ if (ref $patch eq 'Patch') {
}

$patch->note("done\n");
exit $patch->error ? 1 : 0;
exit($patch->error ? 1 : 0);

END {
close STDOUT || die "$0: can't close stdout: $!\n";
Expand Down

0 comments on commit cc94b0d

Please sign in to comment.