Skip to content

Commit 6d7569b

Browse files
authored
{CI} Fix ignore logic (#31784)
1 parent efa4945 commit 6d7569b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

scripts/ci/test_extensions.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,16 @@ set +e
3232

3333
for ext in $output; do
3434
echo
35-
# Use regex to detect if $ext is in $ignore_list
36-
if [[ $ignore_list =~ $ext ]]; then
35+
# Exact string matching against each item in the ignore list
36+
ignore_match=0
37+
for item in $ignore_list; do
38+
if [ "$ext" = "$item" ]; then
39+
ignore_match=1
40+
break
41+
fi
42+
done
43+
44+
if [ $ignore_match -eq 1 ]; then
3745
echo "Ignore extension: $ext"
3846
continue
3947
fi

0 commit comments

Comments
 (0)