From 081c95aee6d6490fdaf67e22c3d6245009462908 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Wed, 1 Dec 2010 12:09:13 -0700 Subject: positional arguments still exist: fix download.sh, follow.sh and the formfiller --- examples/data/scripts/download.sh | 1 + examples/data/scripts/follow.sh | 2 ++ examples/data/scripts/formfiller.sh | 2 ++ 3 files changed, 5 insertions(+) (limited to 'examples') diff --git a/examples/data/scripts/download.sh b/examples/data/scripts/download.sh index cc3cd99..de03b1f 100755 --- a/examples/data/scripts/download.sh +++ b/examples/data/scripts/download.sh @@ -2,6 +2,7 @@ # just an example of how you could handle your downloads # try some pattern matching on the uri to determine what we should do +shift 7 . $UZBL_UTIL_DIR/uzbl-dir.sh # Some sites block the default wget --user-agent.. diff --git a/examples/data/scripts/follow.sh b/examples/data/scripts/follow.sh index d1560bf..2d666a2 100755 --- a/examples/data/scripts/follow.sh +++ b/examples/data/scripts/follow.sh @@ -3,6 +3,8 @@ # This script is just a wrapper around follow.js that lets us change uzbl's mode # after a link is selected. +shift 7 + # if socat is installed then we can change Uzbl's input mode once a link is # selected; otherwise we just select a link. if ! which socat >/dev/null 2>&1; then diff --git a/examples/data/scripts/formfiller.sh b/examples/data/scripts/formfiller.sh index c6822e6..6e04573 100755 --- a/examples/data/scripts/formfiller.sh +++ b/examples/data/scripts/formfiller.sh @@ -53,6 +53,8 @@ MODELINE="> vim:ft=formfiller" [ -d "$(dirname $UZBL_FORMS_DIR)" ] || exit 1 [ -d $UZBL_FORMS_DIR ] || mkdir $UZBL_FORMS_DIR || exit 1 +shift 7 + action=$1 domain=$(echo $UZBL_URI | sed 's/\(http\|https\):\/\/\([^\/]\+\)\/.*/\2/') -- cgit v1.2.3