Skip to content

Commit b3491ce

Browse files
committed
Validates against a gotcha
1 parent a30b5e7 commit b3491ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

update-kafka-image.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
IMAGE=$1
44
[ -z "$IMAGE" ] && echo "First argument should be the image to set" && exit 1
55

6+
[[ $IMAGE != solsson/kafka:* ]] && echo "Should be the full image identifier" && exit 1
7+
68
for F in ./ test/ zookeeper/; do
79
sed -i "s|image: solsson/kafka:.*|image: $IMAGE|" $F*.yml
810
done

0 commit comments

Comments
 (0)