Skip to content

Commit 8014cdc

Browse files
authored
Fix: Only call docker rmi if there are images to prune (TeslaGov#85)
* fix(scripts.sh): only call `docker rmi` if there are images to prune * fix(docker-rmi): always return true after calling `docker rmi`
1 parent 8e5031b commit 8014cdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ build_nginx() {
4040
printf "${GREEN}✓ Successfully built NGINX module ${NC}"
4141
fi
4242

43-
docker rmi -f $(docker images --filter=label=stage=builder --quiet)
43+
docker rmi -f $(docker images --filter=label=stage=builder --quiet) || true
4444
}
4545

4646
rebuild_nginx() {
@@ -92,4 +92,4 @@ test() {
9292

9393
for fn in $@; do
9494
"$fn"
95-
done
95+
done

0 commit comments

Comments
 (0)