06-strip-and-debug-pkgs.sh: replace echo | grep with [[ ]]
This commit is contained in:
parent
817d3d1297
commit
a00d546dce
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue