diff options
| author | samtygier <samtygier@yahoo.co.uk> | 2019-02-18 23:41:41 +0000 |
|---|---|---|
| committer | XECDesign <XECDesign@users.noreply.github.com> | 2019-02-18 23:41:41 +0000 |
| commit | b7812278a84da21ffbac9c5ff552b5aff69f842f (patch) | |
| tree | 3390dbba033ec619dd73d59ac6b483ae736ccae1 | |
| parent | 564f8ef1b87399c0d4b798baf83f9d2b95ac77b7 (diff) | |
Warn early if proxy not reachable (#262)
Avoids a later failure with a less informative message. See #248
| -rwxr-xr-x | build.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -203,6 +203,11 @@ if [[ ! "$FIRST_USER_NAME" =~ ^[a-z][-a-z0-9_]*$ ]]; then exit 1 fi +if [[ -n "${APT_PROXY}" ]] && ! curl --silent ${APT_PROXY} >/dev/null ; then + echo "Could not reach APT_PROXY server:" ${APT_PROXY} + exit 1 +fi + dependencies_check "${BASE_DIR}/depends" mkdir -p "${WORK_DIR}" |
