Skip to content

Commit 69117bd

Browse files
Leonardo Loriericarmstrong
authored andcommitted
fix(builder): remove container only if $JOB is defined
1 parent 26761df commit 69117bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/templates/builder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,5 +179,5 @@ echo
179179
# cleanup
180180
cd $REPO_DIR
181181
git gc &>/dev/null
182-
docker rm -f $JOB &>/dev/null
182+
[ $JOB ] && docker rm -f $JOB &>/dev/null
183183
docker rmi -f $TMP_IMAGE &>/dev/null

0 commit comments

Comments
 (0)