aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2010-12-01 12:09:13 -0700
committerGravatar Brendan Taylor <whateley@gmail.com>2010-12-01 12:10:49 -0700
commit081c95aee6d6490fdaf67e22c3d6245009462908 (patch)
tree583d710969e50f00492f1bf9f8792063a26da5f7 /examples/data
parente293bf512759ac46b48707bac376d04400d5e27d (diff)
positional arguments still exist: fix download.sh, follow.sh and the formfiller
Diffstat (limited to 'examples/data')
-rwxr-xr-xexamples/data/scripts/download.sh1
-rwxr-xr-xexamples/data/scripts/follow.sh2
-rwxr-xr-xexamples/data/scripts/formfiller.sh2
3 files changed, 5 insertions, 0 deletions
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/')