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

Commit 65ea455

Browse files
committed
chore(dockerfile): exit script if build fails
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>
1 parent 321df84 commit 65ea455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/start_docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ echo "2. Setting up docker environment"
9696
# Ensure docker image exists
9797
if [[ ! "$("${DOCKER}" images -q doom-nvim-contrib)" ]]; then
9898
echo " - Docker image does not exist. Building docker image..."
99-
"${DOCKER}" build -t doom-nvim-contrib .
99+
"${DOCKER}" build -t doom-nvim-contrib . || exit
100100
fi
101101

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

0 commit comments

Comments
 (0)