Skip to content

Commit

Permalink
docs: --filter
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Sep 19, 2024
1 parent 6d2eff3 commit 0a192ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-starfishes-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zazuko/shacl-test": patch
---

Make `--filter` case-insensitive
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ for file in $validCases; do
relativePath=$(node -e "console.log(require('path').relative('$WORKING_DIR', '$file'))")

# check if filter is set and skip if not matching
if [ -n "$filter" ] && ! echo "$file" | grep -q "$filter"; then
if [ -n "$filter" ] && ! echo "$file" | grep -iq "$filter"; then
echo "ℹ️SKIP - $relativePath"
continue
fi
Expand Down Expand Up @@ -101,7 +101,7 @@ for file in $invalidCases; do
fi

# check if pattern is set and skip if not matching
if [ -n "$filter" ] && ! echo "$file" | grep -q "$filter"; then
if [ -n "$filter" ] && ! echo "$file" | grep -iq "$filter"; then
echo "ℹ️SKIP - $relativePath"
continue
fi
Expand Down

0 comments on commit 0a192ef

Please sign in to comment.