From 1cd3ceee6e6e8cc1b44ee9a34714c90b3e4691ea Mon Sep 17 00:00:00 2001 From: Russ Kubes Date: Mon, 1 Jul 2019 07:17:13 -0500 Subject: [PATCH] Fix build.sh to run dependencies_check prior to using curl. (#299) --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 539733064d..3e56629d7f 100755 --- a/build.sh +++ b/build.sh @@ -197,6 +197,8 @@ source "${SCRIPT_DIR}/common" # shellcheck source=scripts/dependencies_check source "${SCRIPT_DIR}/dependencies_check" +dependencies_check "${BASE_DIR}/depends" + #check username is valid if [[ ! "$FIRST_USER_NAME" =~ ^[a-z][-a-z0-9_]*$ ]]; then echo "Invalid FIRST_USER_NAME: $FIRST_USER_NAME" @@ -208,8 +210,6 @@ if [[ -n "${APT_PROXY}" ]] && ! curl --silent "${APT_PROXY}" >/dev/null ; then exit 1 fi -dependencies_check "${BASE_DIR}/depends" - mkdir -p "${WORK_DIR}" log "Begin ${BASE_DIR}"