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
5 # Some sites block the default wget --user-agent..
6 GET="wget --user-agent=Firefox"
11 test "x$url" = "x" && { echo "you must supply a url! ($url)"; exit 1; }
13 # only changes the dir for the $get sub process
14 if echo "$url" | grep -E '.*\.torrent' >/dev/null;
16 ( cd "$dest"; eval "$GET" "$url")
18 ( cd "$dest"; eval "$GET" "$url")