diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2010-08-21 11:36:32 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2010-10-02 11:56:29 -0400 |
commit | eeab3def726000c36cc0ba36ca0506b2eecbaf49 (patch) | |
tree | 447c89e3f4659cacf3d55d52a7b1dba4906220ae /examples/data/scripts/download.sh | |
parent | 391ffa73dfa46beea7dff2c9789a5f56a39227c4 (diff) |
Migrate to using uzbl-args util script
Diffstat (limited to 'examples/data/scripts/download.sh')
-rwxr-xr-x | examples/data/scripts/download.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/data/scripts/download.sh b/examples/data/scripts/download.sh index 5b4baa7..f2ee4a8 100755 --- a/examples/data/scripts/download.sh +++ b/examples/data/scripts/download.sh @@ -2,14 +2,15 @@ # just an example of how you could handle your downloads # try some pattern matching on the uri to determine what we should do +source $UZBL_UTIL_DIR/uzbl-args.sh source $UZBL_UTIL_DIR/uzbl-dir.sh # Some sites block the default wget --user-agent.. GET="wget --user-agent=Firefox --content-disposition --load-cookies=$UZBL_COOKIE_JAR" -url="$8" +url="$1" -http_proxy="$9" +http_proxy="$2" export http_proxy test "x$url" = "x" && { echo "you must supply a url! ($url)"; exit 1; } |