File command before version 5.22 prints "uses shared libraries" instead
of the interpreter name. The upstream commit is
a02398dde
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
LDSO=""
- [ -n "$LDD" ] && [ -x "$BIN" ] && file "$BIN" | grep -sqE "ELF.*(executable|interpreter)" && {
+ [ -n "$LDD" ] && [ -x "$BIN" ] && file "$BIN" | grep -sqE "ELF.*(executable|interpreter|uses shared libs)" && {
for token in $("$LDD" "$BIN" 2>/dev/null); do
case "$token" in */*.so*)
dest="$DIR/lib/${token##*/}"