Skip to content

Commit bc69e00

Browse files
committed
OCP-DEMO Avoid error if a previous created image does not exist
The script deletes the previous reference to the create docker image file but, before this commit, exit with an exception the first time the script is called.
1 parent 2dc39f1 commit bc69e00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openshift/message-board/script/install-custom-infinispan-image.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ docker push ${IMAGE}
2727

2828
# store the image reference to file
2929
# it will be used by the install-all script
30-
rm ./CUSTOM_INFINISPAN_IMAGE
31-
echo "$IMAGE" >> CUSTOM_INFINISPAN_IMAGE
30+
rm -fv ./CUSTOM_INFINISPAN_IMAGE
31+
echo "$IMAGE" >> CUSTOM_INFINISPAN_IMAGE

0 commit comments

Comments
 (0)