Skip to content

Commit e1c1ee6

Browse files
committed
Fix find command exec argument quoting
Also silent the npm install command
1 parent ed24668 commit e1c1ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extractors/cds/tools/index-files.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ then
3232
# directory.
3333
#
3434
# We also ensure we skip node_modules, as we can end up in a recursive loop
35-
find . -type d -name node_modules -prune -false -o -type f \( -iname 'package.json' \) -exec grep -l '@sap/cds' {} + -execdir grep -q "^{}\(/\|$\)" "$response_file" + -execdir bash -c "echo \"Installing @sap/cds-dk into \$(pwd) to enable CDS compilation.\"" \; -execdir npm install @sap/cds-dk \;
35+
find . -type d -name node_modules -prune -false -o -type f \( -iname 'package.json' \) -exec grep -ql '@sap/cds' {} \; -execdir bash -c "grep -q \"^\$(pwd)\(/\|$\)\" \"$response_file\"" \; -execdir bash -c "echo \"Installing @sap/cds-dk into \$(pwd) to enable CDS compilation.\"" \; -execdir npm install --silent @sap/cds-dk \;
3636

3737
# Use the npx command to dynamically install the cds development kit (@sap/cds-dk) package if necessary,
3838
# which then provides the cds command line tool in directories which are not covered by the package.json

0 commit comments

Comments
 (0)