From 18c304951d2266ae9f60fe8227b249297a7a3dea Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 24 May 2020 11:42:56 +0300 Subject: [PATCH] pkg_strip: Clean up --- kiss | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/kiss b/kiss index 426b917..52c4041 100755 --- a/kiss +++ b/kiss @@ -444,13 +444,10 @@ pkg_strip() { # Strip only files matching the below ELF types. find "$pkg_dir/$1" -type f | while read -r file; do case $(readelf -h "$file" 2>/dev/null) in - *" DYN "*) strip_opt=unneeded ;; - *" EXEC "*) strip_opt=all ;; - *" REL "*) strip_opt=debug ;; - *) continue - esac - - strip "--strip-$strip_opt" "$file" 2>/dev/null + *" DYN "*) strip --strip-nneeded "$file" ;; + *" EXEC "*) strip --strip-all "$file" ;; + *" REL "*) strip --strip-debug "$file" ;; + esac 2>/dev/null done 2>/dev/null ||: }