Skip to content

Commit

Permalink
Fixes file download issue that prevented scripts from running.
Browse files Browse the repository at this point in the history
  • Loading branch information
jungshadow committed Dec 31, 2020
1 parent 7bba900 commit 70c7a24
Show file tree
Hide file tree
Showing 2 changed files with 2,960 additions and 197 deletions.
2 changes: 1 addition & 1 deletion bin/get_file.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Get the current filename from the USGS download page.
FILENAME=$(curl -s https://geonames.usgs.gov/domestic/download_data.htm |egrep -o "\/docs\/federalcodes\/NationalFedCodes_[0-9]{8}.zip")
FILENAME=$(curl -s https://www.usgs.gov/core-science-systems/ngp/board-on-geographic-names/download-gnis-data | egrep -o "\/docs\/federalcodes\/NationalFedCodes.zip")

# Put together the URL for the file
URL=https://geonames.usgs.gov"$FILENAME"
Expand Down
Loading

0 comments on commit 70c7a24

Please sign in to comment.