Merge pull request #3 from OmarKSH/master

Update packelf.sh (#1)
This commit is contained in:
oufm 2024-06-16 17:37:15 +08:00 committed by GitHub
commit 40e0aeb2e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,7 +62,7 @@ pack() {
shift
libs="$(ldd "$src" | grep -F '/' | sed -E 's|[^/]*/([^ ]+).*?|/\1|')"
ld_so="$(echo "$libs" | grep -F '/ld-linux-')"
ld_so="$(echo "$libs" | grep -F '/ld-linux-' || echo "$libs" | grep -F '/ld-musl-')"
ld_so="$(basename "$ld_so")"
program="$(basename "$src")"