Skip to content

Commit

Permalink
use find to check glob
Browse files Browse the repository at this point in the history
  • Loading branch information
assignUser committed Jan 10, 2025
1 parent bf894ff commit 46a2b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/tasks/macros.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ env:
run: |
# check if completion actually expands to wheel files
# to prevent empty dirs from failing silently
if ! compgen -G "{{ pattern }}" > /dev/null; then
if ! test -n "$(find . -wholename '{{ pattern }}' -print -quit)"; then
echo "No wheel files found!"
exit 1
fi
Expand Down

0 comments on commit 46a2b0c

Please sign in to comment.