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 alexgg committed Jul 12, 2021
1 parent 41ae7ea commit 826892d
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 @@ -198,6 +198,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 @@ -209,8 +211,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 826892d

Please sign in to comment.