Skip to content

Commit

Permalink
add symlink support for openSUSE, /bin/ls is a symlink there
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Oct 30, 2019
1 parent ae2c8d5 commit 013da99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/check-cross-arch
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ else
exit 3
fi

_ls=$(realpath -m $_ls) # handle symlink
_ls=$target/${_ls#$target}
info=$(file $_ls)
targetarch=$(expr "$info" : '.*ld-linux-\([^[:space:]]*\).so.*')
if [ -z "$targetarch" ]; then
Expand Down

0 comments on commit 013da99

Please sign in to comment.