06-strip-and-debug-pkgs.sh: replace grep -q with [[ ]]
This commit is contained in:
parent
fa40215823
commit
81da3e618c
1 changed files with 1 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue