aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts
diff options
context:
space:
mode:
authorGravatar Mason Larobina <mason.larobina@gmail.com>2010-03-21 23:41:32 +0800
committerGravatar Mason Larobina <mason.larobina@gmail.com>2010-03-23 00:40:49 +0800
commitd02a41a27be753aad435cc2dc42e69fba4904f42 (patch)
tree0d0b4fefaa18009ff346815772ed80eaa4aa59e4 /examples/data/scripts
parent9565d9c6625cf403bbcaf5a19f9694bfa6da098e (diff)
More friendly download script.
1. Pass the cookies.txt file to wget through the --load-cookies option. 2. Use the wget option --content-disposition to determine a meaningful name for the downloaded file.
Diffstat (limited to 'examples/data/scripts')
-rwxr-xr-xexamples/data/scripts/download.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/data/scripts/download.sh b/examples/data/scripts/download.sh
index 1c7d039..f6d34e9 100755
--- a/examples/data/scripts/download.sh
+++ b/examples/data/scripts/download.sh
@@ -3,7 +3,7 @@
# try some pattern matching on the uri to determine what we should do
# Some sites block the default wget --user-agent..
-GET="wget --user-agent=Firefox"
+GET="wget --user-agent=Firefox --content-disposition --load-cookies=$XDG_DATA_HOME/uzbl/cookies.txt"
dest="$HOME"
url="$8"