download() { local url=$1 local file_name=$2 if type wget >/dev/null 2>&1; then wget --no-check-certificate -q $url elif type curl >/dev/null 2>&1; then echo "curl -OLJ $url" curl -OLJ $url else echo 'info: no exists wget or curl, make sure the system can use the "wget" or "curl" command' fi }