download.sh 552 B

1234567891011121314151617
  1. #!/bin/bash
  2. # Author: yeho <lj2007331 AT gmail.com>
  3. # BLOG: https://blog.linuxeye.com
  4. #
  5. # Notes: OneinStack for CentOS/RadHat 5+ Debian 6+ and Ubuntu 12+
  6. #
  7. # Project home page:
  8. # http://oneinstack.com
  9. # https://github.com/lj2007331/oneinstack
  10. Download_src() {
  11. [ -s "${src_url##*/}" ] && echo "[${CMSG}${src_url##*/}${CEND}] found" || wget -c --no-check-certificate $src_url
  12. if [ ! -e "${src_url##*/}" ];then
  13. echo "${CFAILURE}${src_url##*/} download failed, Please contact the author! ${CEND}"
  14. kill -9 $$
  15. fi
  16. }