diff options
author | Yves Orton <demerphq@gmail.com> | 2022-08-11 15:51:53 +0200 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2022-08-21 12:09:05 +0200 |
commit | 94f97703e1943dd7f717b7d6960b4f5ecdc69902 (patch) | |
tree | abade0716fcd221ec1e035b0ec26e2b1cfb880dd /Porting/updateAUTHORS.pl | |
parent | 5a6319097f7a670153177fc870c130f13977a121 (diff) | |
download | perl-94f97703e1943dd7f717b7d6960b4f5ecdc69902.tar.gz |
updateAUTHORS.pm - don't update files if they don't change
If we want to just check if the files are up to date we dont want
to have to write to the disk. We will use this in a future patch.
Diffstat (limited to 'Porting/updateAUTHORS.pl')
-rwxr-xr-x | Porting/updateAUTHORS.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Porting/updateAUTHORS.pl b/Porting/updateAUTHORS.pl index 981dbc1e9b..5c10f31bec 100755 --- a/Porting/updateAUTHORS.pl +++ b/Porting/updateAUTHORS.pl @@ -47,9 +47,9 @@ sub main { my $self= Porting::updateAUTHORS->new(%opts); - $self->read_and_update(); + my $changed= $self->read_and_update(); - return 0; # 0 for no error - intended for exit(); + return $changed; # 0 means nothing changed } exit(main()) unless caller; |