diff --git a/common/hooks/post-install/06-strip-and-debug-pkgs.sh b/common/hooks/post-install/06-strip-and-debug-pkgs.sh index 075461304ce..2cb41cf26ff 100644 --- a/common/hooks/post-install/06-strip-and-debug-pkgs.sh +++ b/common/hooks/post-install/06-strip-and-debug-pkgs.sh @@ -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