summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Kubes <rkubes@users.noreply.github.com>2019-07-01 07:17:13 -0500
committerXECDesign <XECDesign@users.noreply.github.com>2019-07-01 13:17:12 +0100
commit4ca539cb459ca6676e9e6a74f303fbd4a372429f (patch)
tree155b5ecf72e2722b8c4991462bd46a70629521e9
parent3c559aeb5654b64c1de7d6aa3dd0e3e6fc40a7be (diff)
Fix build.sh to run dependencies_check prior to using curl. (#299)
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 5397330..3e56629 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}"