File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments