Skip to content

Commit

Permalink
Fix build.sh to run dependencies_check prior to using curl. (RPi-Dist…
Browse files Browse the repository at this point in the history
  • Loading branch information
rkubes authored and fuji246 committed Sep 13, 2019
1 parent 659a6f3 commit 1cd3cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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}"

Expand Down

0 comments on commit 1cd3cee

Please sign in to comment.