mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
stripper: Fix for newer versions of file
The output has changed and this patch will now ignore any additional output. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -43,7 +43,7 @@ function _strip() {
|
||||
for dir in ${dirs}; do
|
||||
# Strip shared objects.
|
||||
find ${dir} -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) \
|
||||
| file -N -f - | sed -n -e 's/^\(.*\):[ ]*.*ELF.*, not stripped/\1/p' |
|
||||
| file -N -f - | sed -n -e 's/^\(.*\):[ ]*.*ELF.*, not stripped.*/\1/p' |
|
||||
while read file; do
|
||||
_strip ${file} || exit $?
|
||||
done || exit $?
|
||||
|
||||
Reference in New Issue
Block a user