diff options
author | Brendan Taylor <brendan@inkdit.com> | 2011-09-05 09:38:40 -0600 |
---|---|---|
committer | Brendan Taylor <brendan@inkdit.com> | 2011-09-05 09:38:40 -0600 |
commit | 920b9dd887e0e905fbd8fc2eb1280f4a4846b1b0 (patch) | |
tree | 36d5194577978f5855223c9cfded8657f74efa5f /examples/data/scripts/follow.sh | |
parent | 26e3068196705c4086fb1a643a0b6d26a2262cc0 (diff) |
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.
Diffstat (limited to 'examples/data/scripts/follow.sh')
-rwxr-xr-x | examples/data/scripts/follow.sh | 4 |
1 files changed, 1 insertions, 3 deletions
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 |