From 5d888bc7c2fcd50453149b5a876f30c3e9429cb7 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 7 Feb 2024 12:37:29 +0000 Subject: [PATCH] reuse: Fix screen-scraping expression for version 2.x reuse 2.1.0 outputs "files with ..." instead of "Files with ...", but it's easy to accept both. Signed-off-by: Simon McVittie --- .gitlab-ci/run-reuse.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci/run-reuse.sh b/.gitlab-ci/run-reuse.sh index 6d0a44c56..69912073a 100755 --- a/.gitlab-ci/run-reuse.sh +++ b/.gitlab-ci/run-reuse.sh @@ -26,9 +26,9 @@ files_without_license_information_max=559 # output rather than the current human-readable output. lint_output="$(reuse lint || true)" -files_with_copyright_information="$(echo "${lint_output}" | awk '/^\* Files with copyright information: / { print $6 }')" -files_with_license_information="$(echo "${lint_output}" | awk '/^\* Files with license information: / { print $6 }')" -total_files="$(echo "${lint_output}" | awk '/^\* Files with copyright information: / { print $8 }')" +files_with_copyright_information="$(echo "${lint_output}" | awk '/^\* [fF]iles with copyright information: / { print $6 }')" +files_with_license_information="$(echo "${lint_output}" | awk '/^\* [fF]iles with license information: / { print $6 }')" +total_files="$(echo "${lint_output}" | awk '/^\* [fF]iles with copyright information: / { print $8 }')" error=0 files_without_copyright_information="$(( total_files - files_with_copyright_information ))"