mirror of
https://github.com/pygos/build.git
synced 2024-11-22 19:19:46 +01:00
fix strip_files: don't check filename against ELF
If we use "file ... | grep -i elf" to detect if a file is an ELF binary, a file *named* elf will erroneously trigger it. This commit adds a flag to disable printing of the file name. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
parent
5ca8069d5b
commit
a0f4d41cfe
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ strip_files() {
|
||||||
|
|
||||||
[ -f "$f" ] || continue;
|
[ -f "$f" ] || continue;
|
||||||
|
|
||||||
if file $f | grep -q -i elf; then
|
if file -b $f | grep -q -i elf; then
|
||||||
${TARGET}-strip --discard-all "$f"
|
${TARGET}-strip --discard-all "$f"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue