fix(github-verify-frozen-bleak): enhance directory traversal to locate 'lib' in subdirectories if not present directly

This commit is contained in:
Ivan 2026-07-08 11:25:21 -05:00
parent c9813b9b2b
commit dda3fdae46
No known key found for this signature in database
2 changed files with 14 additions and 2 deletions

View file

@ -10,6 +10,17 @@ if [[ ! -d "${BUILD_EXE}" ]]; then
exit 1
fi
# If the target directory doesn't have a direct "lib" but has subdirectories (e.g. linux-x64),
# automatically traverse to the first subdirectory containing "lib".
if [[ ! -d "${BUILD_EXE}/lib" ]]; then
for sub in "${BUILD_EXE}"/*; do
if [[ -d "${sub}/lib" ]]; then
BUILD_EXE="${sub}"
break
fi
done
fi
LIB_DIR="${BUILD_EXE}/lib"
if [[ -d "${LIB_DIR}/bleak" ]]; then
echo "bleak bundled at lib/bleak"