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 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples/data/scripts/follow.sh') 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 -- cgit v1.2.3