summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firefox.sh.in8
1 files 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.
bgstack15