support/scripts/check-bin-arch: fix symbolic link check
Commitc96b8675ea
("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> (cherry picked from commitcb0f3fa13f
) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
e8e8f43abd
commit
094a1d118e
@ -38,7 +38,7 @@ while read f; do
|
||||
|
||||
# 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user