From 9f98cc6b09cb65261830af030fe469cf56d44fe5 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Mon, 29 Apr 2019 17:24:18 +0800 Subject: [PATCH] add to strip --- pkgbuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgbuild b/pkgbuild index f4561a4..6888cb5 100755 --- a/pkgbuild +++ b/pkgbuild @@ -279,20 +279,20 @@ strip_files() { find . -type f 2>/dev/null | while read -r binary ; do case "$(file -bi "$binary")" in *application/x-sharedlib*) # Libraries (.so) - strip --strip-unneeded "$binary" ;; + strip --strip-unneeded "$binary" 2>/dev/null ;; *application/x-pie-executable*) # Libraries (.so) - strip --strip-unneeded "$binary" ;; + strip --strip-unneeded "$binary" 2>/dev/null ;; *application/x-archive*) # Libraries (.a) - strip --strip-debug "$binary" ;; + strip --strip-debug "$binary" 2>/dev/null ;; *application/x-object*) case "$binary" in *.ko) # Kernel module - strip --strip-unneeded "$binary" ;; + strip --strip-unneeded "$binary" 2>/dev/null ;; *) continue;; esac;; *application/x-executable*) # Binaries - strip --strip-all "$binary" ;; + strip --strip-all "$binary" 2>/dev/null ;; *) continue ;; esac