File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,21 +44,23 @@ if [ -z "$readelf_cmd" ]; then
4444fi
4545
4646readelf_args=(-l -W)
47+ search_roots=(android/build example/android/build example/android/app/build)
4748files=()
4849if command -v rg > /dev/null 2>&1 ; then
4950 rg_load_align () { rg -n " LOAD|Align" ; }
5051 while IFS= read -r line; do
5152 [ -n " $line " ] && files+=(" $line " )
52- done < <( rg --files -g " libfilehash-native.so" android/build example/android/build || true)
53+ done < <( rg --files -g " libfilehash-native.so" " ${search_roots[@]} " || true)
5354else
5455 rg_load_align () { grep -n -E " LOAD|Align" ; }
5556 while IFS= read -r line; do
5657 [ -n " $line " ] && files+=(" $line " )
57- done < <( find android/build example/android/build -name " libfilehash-native.so" 2> /dev/null || true)
58+ done < <( find " ${search_roots[@]} " -name " libfilehash-native.so" 2> /dev/null || true)
5859fi
5960
6061if [ " ${# files[@]} " -eq 0 ]; then
6162 echo " ERROR: no libfilehash-native.so found; build Android first" >&2
63+ echo " Searched: ${search_roots[*]} " >&2
6264 exit 1
6365fi
6466
You can’t perform that action at this time.
0 commit comments