SOURCES: mozilla-firefox.sh - simplified grep (following iceweasel)

qboosh qboosh at pld-linux.org
Wed Mar 25 16:54:35 CET 2009


Author: qboosh                       Date: Wed Mar 25 15:54:35 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- simplified grep (following iceweasel)

---- Files affected:
SOURCES:
   mozilla-firefox.sh (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: SOURCES/mozilla-firefox.sh
diff -u SOURCES/mozilla-firefox.sh:1.17 SOURCES/mozilla-firefox.sh:1.18
--- SOURCES/mozilla-firefox.sh:1.17	Sat Oct 27 23:52:28 2007
+++ SOURCES/mozilla-firefox.sh	Wed Mar 25 16:54:29 2009
@@ -68,8 +68,7 @@
 			else
 				URL="$1"
 			fi
-			grep browser.tabs.opentabfor.middleclick ~/.mozilla/firefox/*/prefs.js | grep false > /dev/null
-			if [ $? -ne 0 ]; then
+			if ! grep -q 'browser\.tabs\.opentabfor\.middleclick.*false' ~/.mozilla/firefox/*/prefs.js ; then
 				exec $FIREFOX -new-tab "$URL"
 			else
 				exec $FIREFOX -new-window "$URL"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/mozilla-firefox.sh?r1=1.17&r2=1.18&f=u



More information about the pld-cvs-commit mailing list