Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (20 sloc) 0.507 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#/bin/bash
urls="http://www.mcs.anl.gov/~bresnaha/cumulus/cumulus-deps.tar.gz http://github.com/downloads/nimbusproject/nimbus/cumulus-deps.tar.gz"

if [ -f cumulus-deps.tar.gz ]; then
    exit 0
fi
for url in $urls
do
    echo "trying to get from $url"
    wget --no-check-certificate $url
    if [ $? -ne 0 ]; then
        echo "wget failed"
    fi
    tar -C ../ -zxvf cumulus-deps.tar.gz
    if [ $? -ne 0 ]; then
        echo "untar failed"
        rm cumulus-deps.tar.gz
    fi
    exit 0
done
exit 1
Something went wrong with that request. Please try again.