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>
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user