From 81da3e618ceb5d90b9de97e8c88c0c20d58e3bcb Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sun, 14 Apr 2019 09:11:30 -0300 Subject: [PATCH] 06-strip-and-debug-pkgs.sh: replace grep -q with [[ ]] --- common/hooks/post-install/06-strip-and-debug-pkgs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"