#!/bin/bash

cd archives;
for url in `cat ../url_list`
do
    archive=`basename $url`
    if [ ! -f $archive ]
    then
        echo "Downloading `basename $url`"
        curl --remote-name -L "$url" || exit 1
    fi
done


#!/bin/bash

if [ ! -d archives ]
then
    mkdir archives;
fi

cd archives;
for url in `cat ../url_list`
do
    archive=`basename $url`
    if [ ! -f $archive ]
    then
        echo "Downloading `basename $url`"
        curl --remote-name -L "$url" || exit 1
    fi
done


Create the archives folder if it doesn't exist
Create the archives folder if it doesn't exist
