aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/unix/check_and_set_proxy.sh
blob: 5959820501c5e13774689177ac2dcaa2c5a5bfe0 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
# Copyright (C) 2017 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

set -ex

# shellcheck source=../shared/http_proxy.txt
source "${BASH_SOURCE%/*}/../shared/http_proxy.txt"

{ wget -q -e "http_proxy=$proxy" --spider proxy.intra.qt.io && echo "Setting http_proxy to $proxy" && export http_proxy=$proxy; } || echo "Proxy not detected at $proxy"