mirror of
https://github.com/Quad4-Software/MeshChatX.git
synced 2026-08-18 09:49:09 -04:00
fix(github-verify-frozen-bleak): enhance directory traversal to locate 'lib' in subdirectories if not present directly
This commit is contained in:
parent
c9813b9b2b
commit
dda3fdae46
2 changed files with 14 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue