From b9b681c0675067dece47f9067779526b55bcf058 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 19 Feb 2017 14:02:38 +0100 Subject: [PATCH] rstrip.sh: fix handling variations in "file" output On some systems, file adds ", with debug info" after "not stripped" Signed-off-by: Felix Fietkau --- scripts/rstrip.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh index 4e4232db60d6..55caefc1a8cf 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 -- 2.30.2