From: Felix Fietkau Date: Sun, 19 Feb 2017 13:02:38 +0000 (+0100) Subject: rstrip.sh: fix handling variations in "file" output X-Git-Tag: v17.01.1~64 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2d5f8eb0671b40fa266b3ca07404a8ec4ed2c207;p=oweals%2Fopenwrt.git rstrip.sh: fix handling variations in "file" output On some systems, file adds ", with debug info" after "not stripped" Signed-off-by: Felix Fietkau --- diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh index 4e4232db60..55caefc1a8 100755 --- a/scripts/rstrip.sh +++ b/scripts/rstrip.sh @@ -21,7 +21,7 @@ TARGETS=$* } find $TARGETS -type f -a -exec file {} \; | \ - sed -n -e 's/^\(.*\):.*ELF.*\(executable\|relocatable\|shared object\).*,.* stripped/\1:\2/p' | \ + sed -n -e 's/^\(.*\):.*ELF.*\(executable\|relocatable\|shared object\).*,.*/\1:\2/p' | \ ( IFS=":" while read F S; do