From a00d546dce172dd86c07eb5050381ccbc3db2bb4 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sun, 14 Apr 2019 02:11:27 -0300 Subject: [PATCH] 06-strip-and-debug-pkgs.sh: replace echo | grep with [[ ]] --- common/hooks/post-install/06-strip-and-debug-pkgs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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