Skip to content

Commit a50fb76

Browse files
committed
scripts: fix exclusion in version check scripts
Copy/paste made it that a variable name was incorrect, excluding and skipping each file.
1 parent 41a3057 commit a50fb76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/check-go-version-dockerfile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ is_exception() {
4848
# Check if the file is inside an excluded directory.
4949
# The trailing slash ensures that similarly named directories
5050
# (e.g., ./itest/backward-compat_other) are not mistakenly excluded.
51-
if [[ "$file/" == "$exclude"* ]]; then
51+
if [[ "$file/" == "$exception"* ]]; then
5252
return 0
5353
fi
5454
done

scripts/check-go-version-yaml.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ is_exception() {
7979
# Check if the file is inside an excluded directory.
8080
# The trailing slash ensures that similarly named directories
8181
# (e.g., ./itest/backward-compat_other) are not mistakenly excluded.
82-
if [[ "$file/" == "$exclude"* ]]; then
82+
if [[ "$file/" == "$exception"* ]]; then
8383
return 0
8484
fi
8585
done

0 commit comments

Comments
 (0)