File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ if [[ $OSTYPE == 'darwin'* ]]; then
2424 TAR=gtar
2525fi
2626
27- BUILD_DIR=" $( realpath " $ {REPO_DIR} /build" ) "
27+ BUILD_DIR=" ${REPO_DIR} /build"
2828if [ ! -d " ${BUILD_DIR} " ]; then
2929 echo " INFO: creating build directory ${BUILD_DIR} "
3030 mkdir -p " ${BUILD_DIR} "
3434
3535TMP_ASN_FILE=$( mktemp)
3636echo " INFO: download MaxMind ASN database into ${TMP_ASN_FILE} "
37- curl --silent " https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN&suffix=tar.gz&license_key=${MAXMIND_LICENSE_KEY} " > " ${TMP_ASN_FILE} "
37+ curl --silent --location " https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN&suffix=tar.gz&license_key=${MAXMIND_LICENSE_KEY} " > " ${TMP_ASN_FILE} "
3838${TAR} -xzf ${TMP_ASN_FILE} --directory=" ${BUILD_DIR} " --wildcards --strip-components 1 " *.mmdb"
3939rm " ${TMP_ASN_FILE} "
4040
4141TMP_CITY_FILE=$( mktemp)
4242echo " INFO: download MaxMind City database into ${TMP_CITY_FILE} "
43- curl --silent " https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&suffix=tar.gz&license_key=${MAXMIND_LICENSE_KEY} " > " ${TMP_CITY_FILE} "
43+ curl --silent --location " https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&suffix=tar.gz&license_key=${MAXMIND_LICENSE_KEY} " > " ${TMP_CITY_FILE} "
4444${TAR} -xzf ${TMP_CITY_FILE} --directory=" ${BUILD_DIR} " --wildcards --strip-components 1 " *.mmdb"
4545rm " ${TMP_CITY_FILE} "
4646
You can’t perform that action at this time.
0 commit comments