make icon setting configurable
[uzbl-mobile] / examples / scripts / download.sh
1 #!/bin/bash
2 # just an example of how you could handle your downloads
3 # try some pattern matching on the uri to determine what we should do
4
5 # Some sites block the default wget --user-agent...
6 WGET="wget --user-agent=Firefox"
7
8 if [[ $8 =~ .*(.torrent) ]] 
9 then
10     cd $HOME
11     $WGET $8
12 else
13     cd $HOME
14     $WGET $8
15 fi