Skip to content

Commit f3d1131

Browse files
Copilotdata-douser
andauthored
Use consistent -name '.codeql' -type d -prune in find commands
Agent-Logs-Url: https://github.com/advanced-security/codeql-sap-js/sessions/93266b27-a206-4d43-b0f8-a8dd7b7147f5 Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
1 parent 3d4c5f7 commit f3d1131

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/install-packs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ install_framework() {
9393

9494
# Find all qlpack.yml files under this framework and install their packs
9595
# Exclude .codeql cache directories which contain cached pack dependencies by pruning them
96-
find "${REPO_ROOT}/${framework_path}" -name .codeql -type d -prune -o -name "qlpack.yml" -type f -print | sort | while read -r qlpack_file; do
96+
find "${REPO_ROOT}/${framework_path}" -name '.codeql' -type d -prune -o -name 'qlpack.yml' -type f -print | sort | while read -r qlpack_file; do
9797
local pack_dir
9898
pack_dir=$(dirname "${qlpack_file}")
9999
# Use relative path for cleaner output

scripts/upgrade-packs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ upgrade_framework() {
9393

9494
# Find all qlpack.yml files under this framework and upgrade their packs
9595
# Exclude .codeql cache directories which contain cached pack dependencies by pruning them
96-
find "${REPO_ROOT}/${framework_path}" -path '*/.codeql' -prune -o -name 'qlpack.yml' -type f -print | sort | while read -r qlpack_file; do
96+
find "${REPO_ROOT}/${framework_path}" -name '.codeql' -type d -prune -o -name 'qlpack.yml' -type f -print | sort | while read -r qlpack_file; do
9797
local pack_dir
9898
pack_dir=$(dirname "${qlpack_file}")
9999
# Use relative path for cleaner output

0 commit comments

Comments
 (0)