Commit
c96b8675ea03a5d3194d439f740c725dd239ed1a
("support/scripts/check-bin-arch: ignore symbolic links") was bogus,
because it tested ${f}, which is the relative path of the file inside
${TARGET_DIR}, so we end up testing if ${f} on the system is a
symbolic link.
This commit fixes that by testing ${TARGET_DIR}/${f}.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
# Skip symlinks. Some symlinks may have absolute paths as
# target, pointing to host binaries while we're building.
- if [[ -L "${f}" ]]; then
+ if [[ -L "${TARGET_DIR}/${f}" ]]; then
continue
fi