From aeaff17c9ea2b01bebdb7326d78509ced994330e Mon Sep 17 00:00:00 2001 From: Ruben Talstra <14235001+rubentalstra@users.noreply.github.com> Date: Mon, 19 Oct 2026 19:37:43 +0200 Subject: [PATCH] ci: write a stray-literal baseline's licence lines without a literal tag the REUSE linter would read FerroEHR's REUSE lint read the script's own echo of the licence identifier, quote and all, as an invalid SPDX expression; the lines are now printed from parts, as in the consoles' copies. --- scripts/checks/stray-literals.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checks/stray-literals.sh b/scripts/checks/stray-literals.sh index 421a014..545128a 100755 --- a/scripts/checks/stray-literals.sh +++ b/scripts/checks/stray-literals.sh @@ -176,8 +176,8 @@ counts="$(printf '%s\n' "$found" | sed -n 's/^\([^:]*\):[0-9]*:.*/\1/p' | LC_ALL if [ "$update" -eq 1 ]; then { - echo "# SPDX-FileCopyrightText: Cadasto B.V." - echo "# SPDX-License-Identifier: BUSL-1.1" + printf '# %s: %s\n' "SPDX-FileCopyrightText" "Cadasto B.V." + printf '# %s: %s\n' "SPDX-License-Identifier" "BUSL-1.1" echo "# The stray literals each file may still hold while its strings move to" echo "# the catalogs; rewritten by scripts/checks/stray-literals.sh --update." if [ -n "$counts" ]; then printf '%s\n' "$counts"; fi