better plugin directory resolution (bnc#747320)
authorPetr Cerny <pcerny@suse.com>
Sat, 18 Feb 2012 22:22:24 +0100
changeset 392 3992082d6d62
parent 391 5425f43ef15c
child 395 492d540dd2ac
better plugin directory resolution (bnc#747320)
MozillaFirefox/mozilla.sh.in
--- a/MozillaFirefox/mozilla.sh.in	Sat Feb 18 22:21:30 2012 +0100
+++ b/MozillaFirefox/mozilla.sh.in	Sat Feb 18 22:22:24 2012 +0100
@@ -72,7 +72,7 @@
 
 mozilla_lib=`file $MOZ_PROGRAM`
 LIB=lib
-echo $mozilla_lib | grep -q -E 'x86-64|s390x|64-bit.PowerPC' && LIB=lib64
+echo $mozilla_lib | grep -q -E 'ELF.64-bit.*(x86-64|S/390|PowerPC)' && LIB=lib64
 
 BROWSER_PLUGIN_DIR=/usr/$LIB/browser-plugins
 if [ ! -d $BROWSER_PLUGIN_DIR ]; then