Explorar o código

rstrip.sh: fix handling variations in "file" output

On some systems, file adds ", with debug info" after "not stripped"

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau %!s(int64=8) %!d(string=hai) anos
pai
achega
b9b681c067
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/rstrip.sh

+ 1 - 1
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