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
1 changed files with 1 additions and 1 deletions

View File

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