Skip to content

Commit db0150c

Browse files
committed
fix: shellcheck warning in spdx-headers.sh
*/init.test.sys_class_net/* stood beside *.test.*, which already matches it - those fixture paths contain ".test." as well. Same change in all four copies. Signed-off-by: Simon Walz <contact@simonwalz.de>
1 parent 89d4736 commit db0150c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/scripts/spdx-headers.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ in_scope() {
9595
*.test.sh) return 0 ;;
9696
esac
9797
# Test fixtures: never touch, whatever the extension. A header could change
98-
# what a test compares.
98+
# what a test compares. This also covers the fixture directories, whose paths
99+
# contain ".test." as well - init.test.sys_class_net/eth0/address and the like.
99100
case "${file}" in
100-
*.test.*|*/init.test.sys_class_net/*) return 1 ;;
101+
*.test.*) return 1 ;;
101102
esac
102103

103104
case "${file}" in

0 commit comments

Comments
 (0)