Skip to content

Commit 0b1d320

Browse files
committed
Ignore .codeql/ directories in *-packs.sh scripts
1 parent a6de846 commit 0b1d320

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/install-packs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ install_framework() {
9292
echo "Installing packs for: ${framework_path}"
9393

9494
# Find all qlpack.yml files under this framework and install their packs
95-
find "${REPO_ROOT}/${framework_path}" -name "qlpack.yml" -type f | sort | while read -r qlpack_file; do
95+
# Exclude .codeql directories which contain cached packs from previous installs
96+
find "${REPO_ROOT}/${framework_path}" -name ".codeql" -prune -o -name "qlpack.yml" -type f -print | sort | while read -r qlpack_file; do
9697
local pack_dir
9798
pack_dir=$(dirname "${qlpack_file}")
9899
# Use relative path for cleaner output

scripts/upgrade-packs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ upgrade_framework() {
9292
echo "Upgrading packs for: ${framework_path}"
9393

9494
# Find all qlpack.yml files under this framework and upgrade their packs
95-
find "${REPO_ROOT}/${framework_path}" -name "qlpack.yml" -type f | sort | while read -r qlpack_file; do
95+
# Exclude .codeql directories which contain cached packs from previous installs
96+
find "${REPO_ROOT}/${framework_path}" -name ".codeql" -prune -o -name "qlpack.yml" -type f -print | sort | while read -r qlpack_file; do
9697
local pack_dir
9798
pack_dir=$(dirname "${qlpack_file}")
9899
# Use relative path for cleaner output

0 commit comments

Comments
 (0)