Project

General

Profile

« Previous | Next » 

Revision 7359

inputs/FIA/_src/download: Only run wget on files that don't yet exist

View differences:

inputs/FIA/_src/download
6 6
cd "$selfDir"
7 7

  
8 8
for state in AS GU PW AL AK AZ AR CA CO CT DE DC FL GA HI ID IL IN IA KS KY LA ME MD MA MI MN MS MO MT NE NV NH NJ NM NY NC ND OH OK OR PA PR RI SC SD TN TX UT VT VI VA WA WV WI WY; do
9
    wget "http://apps.fs.fed.us/fiadb-downloads/$state.zip"
9
    file="$state.zip"
10
    test -e "$file" || wget "http://apps.fs.fed.us/fiadb-downloads/$file"
10 11
done

Also available in: Unified diff