[Lunar-commits] <moonbase> webkit: better strings check

Paul Bredbury brebs at lunar-linux.org
Sat Mar 12 22:51:05 CET 2011


commit b63166744feee52cf0ecdb786ff3f0db9e1433f5
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Sun Mar 13 04:51:05 2011 +0700

    webkit: better strings check
    
    This would be quicker, stopping at the first match.
---
 web/webkit/POST_INSTALL |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/web/webkit/POST_INSTALL b/web/webkit/POST_INSTALL
index ae45d16..a8db910 100644
--- a/web/webkit/POST_INSTALL
+++ b/web/webkit/POST_INSTALL
@@ -1,5 +1,5 @@
 if module_installed libproxy ; then
-  if [[ -z "$(strings /usr/lib/libproxy.so | grep webkit)" ]] ; then
+  if ! `strings /usr/lib/libproxy.so | grep -q webkit` ; then
     # Recompile libproxy to support webkit, breaking circular dependency
     lin -c libproxy
   fi


More information about the Lunar-commits mailing list