aboutsummaryrefslogtreecommitdiff
path: root/common/hooks/post-install
diff options
context:
space:
mode:
authormaxice8 <thinkabit.ukim@gmail.com>2019-04-14 12:11:30 +0000
committermaxice8 <30738253+maxice8@users.noreply.github.com>2019-04-14 15:46:51 +0000
commit81da3e618ceb5d90b9de97e8c88c0c20d58e3bcb (patch)
tree33673aa2f1667d671b7cec531f255d33f508e377 /common/hooks/post-install
parentfa40215823f3bd0dd74ff27a316af69326d70996 (diff)
downloadvoid-packages-81da3e618ceb5d90b9de97e8c88c0c20d58e3bcb.tar
void-packages-81da3e618ceb5d90b9de97e8c88c0c20d58e3bcb.tar.gz
void-packages-81da3e618ceb5d90b9de97e8c88c0c20d58e3bcb.tar.bz2
void-packages-81da3e618ceb5d90b9de97e8c88c0c20d58e3bcb.tar.lz
void-packages-81da3e618ceb5d90b9de97e8c88c0c20d58e3bcb.tar.xz
void-packages-81da3e618ceb5d90b9de97e8c88c0c20d58e3bcb.tar.zst
void-packages-81da3e618ceb5d90b9de97e8c88c0c20d58e3bcb.zip
06-strip-and-debug-pkgs.sh: replace grep -q with [[ ]]
Diffstat (limited to 'common/hooks/post-install')
-rw-r--r--common/hooks/post-install/06-strip-and-debug-pkgs.sh2
1 files changed, 1 insertions, 1 deletions
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 2cb41cf26ff..a15dd1a96c3 100644
--- a/common/hooks/post-install/06-strip-and-debug-pkgs.sh
+++ b/common/hooks/post-install/06-strip-and-debug-pkgs.sh
@@ -123,7 +123,7 @@ hook() {
msg_red "$pkgver: failed to strip ${f#$PKGDESTDIR}\n"
return 1
fi
- if file $f | grep -q "interpreter "; then
+ if [[ $(file $f) =~ "interpreter " ]]; then
echo " Stripped position-independent executable: ${f#$PKGDESTDIR}"
else
echo " Stripped library: ${f#$PKGDESTDIR}"