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

This commit is contained in:
maxice8 2019-04-14 02:11:27 -03:00 committed by maxice8
parent 817d3d1297
commit a00d546dce

View file

@ -84,7 +84,7 @@ hook() {
case "$(file -bi "$f")" in
application/x-executable*)
chmod +w "$f"
if echo "$(file $f)" | grep -q "statically linked"; then
if [[ $(file $f) =~ "statically linked" ]]; then
# static binary
$STRIPCMD "$f"
if [ $? -ne 0 ]; then