From: Michael Tremer Date: Wed, 7 Jun 2017 09:34:58 +0000 (+0100) Subject: stripper: Fix for newer versions of file X-Git-Tag: v2.19-core112~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ee623a89ad42306001d454c4638a561cf9685c2;p=ipfire-2.x.git 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 --- diff --git a/src/stripper b/src/stripper index 3601e74274..d73848fc6e 100755 --- a/src/stripper +++ b/src/stripper @@ -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 $?