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 | |
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.
-rwxr-xr-x | examples/data/scripts/follow.sh | 4 | ||||
-rwxr-xr-x | examples/data/scripts/session.sh | 1 |
2 files changed, 1 insertions, 4 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 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" |