File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,15 @@ FILE_TO_USE="../postgres/wal2json/wal2json.so"
44ARCH=$( uname -m)
55FILE_NAME=" wal2json-Linux-$ARCH -glibc.so"
66
7- DOCKER_CURL=" docker run --rm curlimages/curl"
7+ docker_curl () {
8+ # The environment variables can be specified in lower case or upper case.
9+ # The lower case version has precedence. http_proxy is an exception as it is only available in lower case.
10+ docker run --rm -e http_proxy -e https_proxy -e HTTPS_PROXY -e no_proxy -e NO_PROXY curlimages/curl " $@ "
11+ }
812
913if [[ $WAL2JSON_VERSION == " latest" ]]; then
1014 VERSION=$(
11- $DOCKER_CURL https://api.github.com/repos/getsentry/wal2json/releases/latest |
15+ docker_curl https://api.github.com/repos/getsentry/wal2json/releases/latest |
1216 grep ' "tag_name":' |
1317 sed -E ' s/.*"([^"]+)".*/\1/'
1418 )
2428mkdir -p ../postgres/wal2json
2529if [ ! -f " ../postgres/wal2json/$VERSION /$FILE_NAME " ]; then
2630 mkdir -p " ../postgres/wal2json/$VERSION "
27- $DOCKER_CURL -L \
31+ docker_curl -L \
2832 " https://github.com/getsentry/wal2json/releases/download/$VERSION /$FILE_NAME " \
2933 > " ../postgres/wal2json/$VERSION /$FILE_NAME "
3034fi
You can’t perform that action at this time.
0 commit comments