Skip to content

Commit

Permalink
Merge pull request #2 from theturnout/fix/issue-1-fix-url
Browse files Browse the repository at this point in the history
Fixes file download issue that prevented scripts from running.
  • Loading branch information
jungshadow authored Dec 31, 2020
2 parents 7bba900 + 70c7a24 commit 13c8ca6
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 13c8ca6

Please sign in to comment.