aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/download.sh
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-22 12:13:51 +0800
commit3e730dd0d2db5984a4fc7e1fab423f5df7f34c08 (patch)
treea20508cc028dca53beb639c31980951631ede31c /examples/data/scripts/download.sh
parent1a6812e2ede05a2a6e1cf995df0f0f344acc45d8 (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/download.sh')
-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"