diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2020-02-06 15:16:17 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-02-06 15:16:17 +0000 |
commit | 139a4007c1eee4771ca72d7ffc835cf74c951aee (patch) | |
tree | 147509b9b9d963eb45c92c344bf17a35ae6aa196 /maint | |
parent | a15ff337c036dc7e4af8aaf9cf2fc9854b7a3e40 (diff) | |
download | strace-139a4007c1eee4771ca72d7ffc835cf74c951aee.tar.gz |
maint/update_copyright_years.sh: fix concurrent execution
* maint/update_copyright_years.sh (process_file): Replace "continue"
with "return".
Fixes: v4.21~318 "maint/update_copyright_years.sh: implement concurrent execution"
Diffstat (limited to 'maint')
-rwxr-xr-x | maint/update_copyright_years.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maint/update_copyright_years.sh b/maint/update_copyright_years.sh index 34548220f..b4c7ceb81 100755 --- a/maint/update_copyright_years.sh +++ b/maint/update_copyright_years.sh @@ -99,7 +99,7 @@ process_file() if [ -z "$copyright_year_raw" ]; then debug "Copyright notices haven't been found, skipping: $f" - continue + return fi last_commit_year=$(date -u +%Y -d "@$(git log --format=format:%at -- "$f" | @@ -116,7 +116,7 @@ process_file() # assume copyright notice is still relevant if [ "$last_commit_year" = "$copyright_year" ]; then debug "Does not need update, skipping: $f" - continue + return else debug "Needs update ('$copyright_year' != '$last_commit_year'): $f" fi |