File tree Expand file tree Collapse file tree
.github/workflows/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
4444changed=" $* "
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)
You can’t perform that action at this time.
0 commit comments