Skip to content

Commit e9e71c2

Browse files
committed
Avoid using xargs and fix copy-paste error
1 parent 1270e98 commit e9e71c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/scripts/run_affected_tests

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ set -o pipefail
4040

4141
# VARIABLES #
4242

43-
# Get the list of packages to deprecate:
43+
# Get the list of changed files:
4444
changed="$*"
4545

4646
# Get the path to a log file as the third argument to the build script:
@@ -129,7 +129,7 @@ main() {
129129
for package in ${packages}; do
130130
echo "Finding packages which depend on '${package}'..."
131131
escaped_package=$(echo "$package" | sed 's/[\/&]/\\&/g')
132-
dependents=$(find lib/node_modules/@stdlib -type f -name '*.js' -print0 | xargs -0 -L 200 grep -ol -E "require\( [']${escaped_package}['] \)")
132+
dependents=$(find lib/node_modules/@stdlib -type f -name '*.js' -exec grep -ol -E "require\( [']${escaped_package}['] \)" {} +)
133133
echo "Found: ${dependents}"
134134
if [ -n "${dependents}" ]; then
135135
dependents=$(dirname $dependents | sed -E 's/\/(bin|data|etc|include|lib|src|test)\/?$//' | sort -u)

0 commit comments

Comments
 (0)