Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
chore(dockerfile): exit script if build fails
Browse files Browse the repository at this point in the history
Otherwise you get a prompt to pick a registry to pull the image from
(since it failed to build locally).

Signed-off-by: Edwin Török <edwin@etorok.net>
  • Loading branch information
edwintorok committed Dec 31, 2022
1 parent 321df84 commit 65ea455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/start_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ echo "2. Setting up docker environment"
# Ensure docker image exists
if [[ ! "$("${DOCKER}" images -q doom-nvim-contrib)" ]]; then
echo " - Docker image does not exist. Building docker image..."
"${DOCKER}" build -t doom-nvim-contrib .
"${DOCKER}" build -t doom-nvim-contrib . || exit
fi

if [ "$("${DOCKER}" ps -aq -f status=exited -f name=doom-nvim-contrib-container)" ]; then
Expand Down

0 comments on commit 65ea455

Please sign in to comment.