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