Commit da446dc5 authored by ale's avatar ale

Fix jinja escapes

parent 51aa1ec9
Pipeline #6179 failed with stage
in 3 minutes and 50 seconds
......@@ -14,7 +14,11 @@ if [ -z "$image" ]; then
exit 1
fi
pre_version=$($binary inspect --type image --format "{{.Id}}" $image)
get_image_version() {
$binary inspect --type image --format "{{ '{{' }}.Id{{ '}}' }}" $image
}
pre_version=$(get_image_version)
$binary pull $image
......@@ -22,7 +26,7 @@ if [ $? -gt 0 ]; then
exit 1
fi
post_version=$($binary inspect --type image --format "{{.Id}}" $image)
post_version=$(get_image_version)
if [ "$pre_version" == "$post_version" ]; then
exit 42
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment