termux_step_massage: Fix logic for undefined symbols

The pattern `for lib in "$(find [...])"` does not work if `find` matches
more than one file. Double quotes around `$(...)` must be removed.

This bug was introduced in 849112f9e7, and
the check did not work correctly from then on, until now.
This commit is contained in:
Tee KOBAYASHI 2023-01-14 16:58:19 +09:00
parent d30a2d6b57
commit 78715de5be
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ termux_step_massage() {
SYMBOLS+=" $(echo libandroid_{sem_{open,close,unlink},shm{ctl,get,at,dt}})"
SYMBOLS+=" $(echo backtrace{,_symbols{,_fd}})"
grep_pattern="$(create_grep_pattern $SYMBOLS)"
for lib in "$(find lib -name "*.so")"; do
for lib in $(find lib -name "*.so"); do
if ! $READELF -h "$lib" &> /dev/null; then
continue
fi