Skip to content

Commit

Permalink
Fix parsing of latest libmaxminddb version number
Browse files Browse the repository at this point in the history
  • Loading branch information
pmor committed Jan 25, 2020
1 parent 0df3eb9 commit 19f47da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ if [ "$LIBMAXMINDDB_INSTALL" = 'true' ]; then
mkdir -p "$LIBMAXMINDDB_CACHE_DIST_DIR"

LIBMAXMINDDB_LATEST_VERSION=$(curl -s https://api.github.com/repos/maxmind/libmaxminddb/releases/latest \
| grep '"name": "\d.*".*' \
| grep '"tag_name".*' \
| cut -d : -f 2,3 \
| tr -d \","[:blank:]")

Expand Down
1 change: 1 addition & 0 deletions test/compile_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ testSuccessWithLibLatestInstall() {
env 'MAXMIND_LICENSE_KEY' 'gAZR7U6DdeZa70y9'
env 'GEOLITE_DB_NAME' 'City'
env 'LIBMAXMINDDB_INSTALL' 'true'
env_unset 'LIBMAXMINDDB_VERSION'
compile
assertCapturedSuccess
}
Expand Down

0 comments on commit 19f47da

Please # to comment.