aboutsummaryrefslogtreecommitdiff
path: root/update-kafka-image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update-kafka-image.sh')
-rwxr-xr-xupdate-kafka-image.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/update-kafka-image.sh b/update-kafka-image.sh
index 1c32293..fae9c6f 100755
--- a/update-kafka-image.sh
+++ b/update-kafka-image.sh
@@ -3,6 +3,8 @@
IMAGE=$1
[ -z "$IMAGE" ] && echo "First argument should be the image to set" && exit 1
+[[ $IMAGE != solsson/kafka:* ]] && echo "Should be the full image identifier" && exit 1
+
for F in ./ test/ zookeeper/; do
sed -i "s|image: solsson/kafka:.*|image: $IMAGE|" $F*.yml
done