From e530b2e4166d6c585252a4e5e4e5da557c2c079f Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Mon, 2 Jun 2008 12:49:37 +0000 Subject: fixes #200631: firefox -d starts with a convicted monopolist's product page (actually ff stays in endles loop) --- firefox.sh.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/firefox.sh.in b/firefox.sh.in index 48ab576..e8f5048 100644 --- a/firefox.sh.in +++ b/firefox.sh.in @@ -158,8 +158,12 @@ do shift ;; -d | --debugger) - script_args="$script_args -d $2" - shift 2 + if [ $# -gt 1 ]; then + script_args="$script_args -d $2" + shift 2 + else + shift + fi ;; *) # Move the unrecognized argument to the end of the list. -- cgit