Skip to content

Commit

Permalink
Fixes for getting data
Browse files Browse the repository at this point in the history
  • Loading branch information
jlmcgraw committed Nov 2, 2017
1 parent ccb23d5 commit bec5f93
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions freshenLocalData.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,12 @@ IFS=$(printf '\n\t') # IFS is newline or tab
dataUrl="https://www.dropbox.com/s/bk6xvyht9q476k4/data.tar.xz?dl=0"
dataFile="data.tar.xz"

#Get all of the latest info
# Get all of the latest info
echo "Get the data archive"
set +e
wget --timestamping -erobots=off $dataUrl
set -e
wget --timestamping -erobots=off $dataUrl --output-document="$dataFile"

# Extract the archive locally
echo "Uncompress $dataFile"

#Disable quit on error
set +e
tar --extract --verbose --keep-newer-files --file "$dataFile"
#Restore quit on error
set -e


0 comments on commit bec5f93

Please sign in to comment.