Skip to content

Commit 6419ed1

Browse files
committed
chore: fix license check pattern regex
Pattern regex did not match lists of patterns, therefore failing when `txt` example keys were checked. Fixed Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
1 parent d961a41 commit 6419ed1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tools/license.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ get_matching_reuse_pattern() {
220220

221221
# Extract all path patterns from REUSE.toml
222222
local patterns
223-
patterns=$(grep "^path =" "$REUSE_CONFIG" \
224-
| sed -E 's/^path = [\[]?//;s/[\]]?$//;s/"//g;s/'"'"'//g;s/,/ /g')
223+
patterns=$(grep "^path =" "$REUSE_CONFIG" | sed -E 's/^path = \[?//;s/\]$//;s/"//g;s/'"'"'//g;s/, /\n/g')
225224

226225
# Disable globbing temporarily for safe pattern matching
227226
set -f

0 commit comments

Comments
 (0)