Commit 2ee73348 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add file for Internet related functions

parent 500d9972
#!/bin/bash
# 2010 Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
which xdg-open 2>/dev/null >/dev/null && BROWSER=xdg-open
# (command from perl-libwww)
which GET &>/dev/null && GET=GET || GET=false
download_url()
{
# use wget with try=1 and timeout = 30 sec
wget -c -t 1 -T 30 "$1"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment