From 920b9dd887e0e905fbd8fc2eb1280f4a4846b1b0 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Mon, 5 Sep 2011 09:38:40 -0600 Subject: on Ubuntu, properly clear keycmd when a link is selected using follow.sh dash treats a 'shift' when there are no more arguments as an error. --- examples/data/scripts/follow.sh | 4 +--- examples/data/scripts/session.sh | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/data/scripts/follow.sh b/examples/data/scripts/follow.sh index 30d3775..8ae095c 100755 --- a/examples/data/scripts/follow.sh +++ b/examples/data/scripts/follow.sh @@ -4,9 +4,6 @@ result=$1 shift -uriaction=$1 -shift - case "$result" in XXXEMIT_FORM_ACTIVEXXX) # a form element was selected @@ -17,6 +14,7 @@ case "$result" in printf 'set mode=\nevent KEYCMD_CLEAR\n' > "$UZBL_FIFO" ;; XXXRETURNED_URIXXX*) + uriaction=$1 uri=${result#XXXRETURNED_URIXXX} case "$uriaction" in diff --git a/examples/data/scripts/session.sh b/examples/data/scripts/session.sh index 4e7bfd1..96db4f8 100755 --- a/examples/data/scripts/session.sh +++ b/examples/data/scripts/session.sh @@ -33,7 +33,6 @@ UZBL="uzbl-browser -c \"$UZBL_CONFIG_FILE\"" # add custom flags and whatever her scriptfile="$( readlink -f "$0" )" # this script act="$1" -shift if [ -z "$act" ]; then [ -f "$UZBL_SESSION_FILE" ] && act="launch" || act="endsession" -- cgit v1.2.3