aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-02-19 14:02:38 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-19 16:56:17 +0100
commitb9b681c0675067dece47f9067779526b55bcf058 (patch)
tree81fe1fa41c1720354a31ce4a2f003e352526f582 /scripts
parentbececcce868eff1864c60c87c9b82cb8114510cf (diff)
downloadupstream-b9b681c0675067dece47f9067779526b55bcf058.tar.gz
upstream-b9b681c0675067dece47f9067779526b55bcf058.tar.bz2
upstream-b9b681c0675067dece47f9067779526b55bcf058.zip
rstrip.sh: fix handling variations in "file" output
On some systems, file adds ", with debug info" after "not stripped" Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rstrip.sh2
1 files changed, 1 insertions, 1 deletions
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