diff --git a/common/hooks/post-install/06-strip-and-debug-pkgs.sh b/common/hooks/post-install/06-strip-and-debug-pkgs.sh index 2cb41cf26ff..a15dd1a96c3 100644 --- a/common/hooks/post-install/06-strip-and-debug-pkgs.sh +++ b/common/hooks/post-install/06-strip-and-debug-pkgs.sh @@ -123,7 +123,7 @@ hook() { msg_red "$pkgver: failed to strip ${f#$PKGDESTDIR}\n" return 1 fi - if file $f | grep -q "interpreter "; then + if [[ $(file $f) =~ "interpreter " ]]; then echo " Stripped position-independent executable: ${f#$PKGDESTDIR}" else echo " Stripped library: ${f#$PKGDESTDIR}"