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
24
24
TAR=gtar
25
25
fi
26
26
27
- BUILD_DIR=" $( realpath " $ {REPO_DIR} /build" ) "
27
+ BUILD_DIR=" ${REPO_DIR} /build"
28
28
if [ ! -d " ${BUILD_DIR} " ]; then
29
29
echo " INFO: creating build directory ${BUILD_DIR} "
30
30
mkdir -p " ${BUILD_DIR} "
34
34
35
35
TMP_ASN_FILE=$( mktemp)
36
36
echo " 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} "
38
38
${TAR} -xzf ${TMP_ASN_FILE} --directory=" ${BUILD_DIR} " --wildcards --strip-components 1 " *.mmdb"
39
39
rm " ${TMP_ASN_FILE} "
40
40
41
41
TMP_CITY_FILE=$( mktemp)
42
42
echo " 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} "
44
44
${TAR} -xzf ${TMP_CITY_FILE} --directory=" ${BUILD_DIR} " --wildcards --strip-components 1 " *.mmdb"
45
45
rm " ${TMP_CITY_FILE} "
46
46
You can’t perform that action at this time.
0 commit comments