Skip to content

Commit

Permalink
fix exit status
Browse files Browse the repository at this point in the history
`exit` has higher precedence than `?:` and `==`, so `exit $Errors == 0 ? 0 : 1` parses as `(exit $Errors) == 0 ? 0 : 1`, which is not what was intended.
  • Loading branch information
mauke authored Nov 23, 2023
1 parent ae511f5 commit a3e3995
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit a3e3995

Please sign in to comment.