Skip to content

Commit

Permalink
fix: Ensure name_filter are local scoped (exercism#861)
Browse files Browse the repository at this point in the history
* fix: Ensure name_filter are local scoped

* fix test on macos
  • Loading branch information
tomasnorre authored Nov 17, 2024
1 parent 1df6486 commit 56214d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ file_ext="php"
function main {
has_failures=0

name_filter=()
name_filter=( "-name" "*" ) # MacOS otherwise sees unbound variable
if [ $# -ge 1 ] && [ -n "$1" ]; then
name_filter=("-name" "$1")
fi
Expand Down

0 comments on commit 56214d6

Please sign in to comment.