Skip to content

Commit

Permalink
fix: Ensure build errors end build process
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed Jul 29, 2021
1 parent 113ef1a commit ad3a995
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ cd "${APP_PATH}"
"${APP_PATH}/tools/git-ready-to-deploy.sh"

if [ $? -ne 0 ]; then
echo "would exit";
echo "Please ensure that the deploy directory is free of changes. Commit and push all changes to ensure deploy can be reproduced by others.";
exit 1
fi


Expand Down Expand Up @@ -117,11 +118,11 @@ echo "### Step 2: Build web application"
echo

cd "${APP_PATH}/doubtfire-web"
# npm run deploy
npm run deploy

if [ $? -ne 0 ]; then
echo "would exit";
# exit 1
echo "Failed to build doubtfire web";
exit 1
fi

echo
Expand Down

0 comments on commit ad3a995

Please sign in to comment.