06-strip-and-debug-pkgs.sh: replace grep -q with [[ ]]

This commit is contained in:
maxice8 2019-04-14 09:11:30 -03:00 committed by maxice8
parent fa40215823
commit 81da3e618c

View File

@ -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}"