Skip to content

Commit d446c83

Browse files
committed
Fix find command that doesn't return anything on Linux
1 parent 4b7dd55 commit d446c83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/copyPackageJsonFiles.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ fi
2727

2828
copied_package_json_files=0
2929

30-
for file in $( find -L . -type d -name node_modules -prune -o -name 'package.json' -print0 | xargs -0 -r -I {}); do
30+
#for file in $( find -L . -type d -name node_modules -prune -o -name 'package.json' -print0 | xargs -0 -r -I {}); do
31+
for file in $( find -L . -type d -name node_modules -prune -o -name 'package.json' -print0 | xargs -0 -r -I {} echo {}); do
3132
fileDirectory=$(dirname "${file}")
3233
targetDirectory="../${ARTIFACTS_DIRECTORY}/${NPM_PACKAGE_JSON_ARTIFACTS_DIRECTORY}/${fileDirectory}"
3334
echo "copyPackageJsonFiles: Debug: Copying ${file} to ${targetDirectory}" # debug logging

0 commit comments

Comments
 (0)