From 228e52f1caf77efe6e5ce151258294b396205bc7 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 21 May 2020 11:09:31 +0300 Subject: [PATCH] kiss: Silently skip stripping if dependencies aren't available. --- kiss | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/kiss b/kiss index e0661a5..268ba9a 100755 --- a/kiss +++ b/kiss @@ -429,19 +429,9 @@ pkg_strip() { log "$1" "Stripping binaries and libraries" - command -v strip >/dev/null || { - war "strip not found, skipping binary stripping" - return 0 - } - - command -v readelf >/dev/null || { - war "readelf not found, skipping binary stripping" - return 0 - } - # Strip only files matching the below ELF types. find "$pkg_dir/$1" -type f | while read -r file; do - case $(readelf -h "$file") in + case $(readelf -h "$file" 2>/dev/null) in *" DYN "*) strip_opt=unneeded ;; *" EXEC "*) strip_opt=all ;; *" REL "*) strip_opt=debug ;;