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"
14 test "x$url" = "x" && { echo "you must supply a url! ($url)"; exit 1; }
16 # only changes the dir for the $get sub process
17 if echo "$url" | grep -E '.*\.torrent' >/dev/null;
19 ( cd "$dest"; eval "$GET" "$url")
21 ( cd "$dest"; eval "$GET" "$url")