From 2e94516ee2f6f3ad0c2684891674b4062a45edaf Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 27 Oct 2021 13:25:14 -0400 Subject: [PATCH] Reorder linting on build-and-deploy --- build-and-deploy.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build-and-deploy.sh b/build-and-deploy.sh index 3e85c09b..5899ffc9 100755 --- a/build-and-deploy.sh +++ b/build-and-deploy.sh @@ -24,12 +24,13 @@ if [[ -n ${1} ]]; then done fi -echo -n "> Linting code for errors... " -./lint || exit - HOSTS=( ${@} ) echo "> Deploying to host(s): ${HOSTS[@]}" +# Lint to prevent deploying bad code +echo -n "Linting code for errors... " +./lint || exit + # Build the packages echo -n "Building packages... " version="$( ./build-unstable-deb.sh 2>/dev/null )"