[packages/firefox] shell script changes from firefox60-esr (fixes webdriver invocations)

atler atler at pld-linux.org
Sat Apr 25 01:04:08 CEST 2020


commit e47e2da804d4e1cdf55d1e469b3d19e10004fac5
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Apr 25 01:01:51 2020 +0200

    shell script changes from firefox60-esr (fixes webdriver invocations)

 firefox.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/firefox.sh b/firefox.sh
index d18b731..90673c0 100644
--- a/firefox.sh
+++ b/firefox.sh
@@ -26,7 +26,7 @@ PWD=${PWD:-$(pwd)}
 
 if [ -z "$1" ]; then
 	exec $FIREFOX
-else
+elif [ $# -eq 1 -a "$1" = "${1#-}" ]; then
 	if [ -f "$PWD/$1" ]; then
 		URL="file://$PWD/$1"
 	else
@@ -37,4 +37,6 @@ else
 	else
 		exec $FIREFOX -new-window "$URL"
 	fi
+else
+	exec $FIREFOX "$@"
 fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/firefox.git/commitdiff/e47e2da804d4e1cdf55d1e469b3d19e10004fac5



More information about the pld-cvs-commit mailing list