Skip to content

Commit

Permalink
Merge pull request #397 from pelias/download-name
Browse files Browse the repository at this point in the history
feat(download): Clarify downloader name in info logs
  • Loading branch information
orangejulius authored Sep 18, 2018
2 parents 2b477c3 + 33b6db2 commit 6e8096b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/sqlite_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ REMOTE_PATH="${REMOTE}/${DB_FILENAME}.bz2"
info() { echo -e "\e[33m[$1]\t\e[0m $2" >&2; }
err() { echo -e "\e[31m[$1]\t\e[0m \e[91m$2\e[0m" >&2; }
extract_file() {
info 'decompress' "${LOCAL_BZ2_PATH}"
info 'whosonfirst-sqlite-decompress' "${LOCAL_BZ2_PATH}"
bunzip2 -f "${LOCAL_BZ2_PATH}" > "${LOCAL_DB_PATH}"
}
generate_timestamp() {
Expand All @@ -45,7 +45,7 @@ download_handler() {
fi
}
download_sqlite_db() {
info 'download' "${REMOTE_PATH}"
info 'whosonfirst-sqlite-download' "${REMOTE_PATH}"
if [[ ! -f "${LOCAL_TS_PATH}" ]]; then
# first download
download_handler $(curl "${REMOTE_PATH}" \
Expand Down

0 comments on commit 6e8096b

Please sign in to comment.