File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
+
2
3
set -eu
3
4
set -o pipefail
4
5
53
54
IMAGE_VERSION=" $( jq --raw-output ' .architectures.x86_64.artifacts.openstack.release' " $RHCOS_VERSIONS_FILE " ) "
54
55
fi
55
56
56
-
57
-
58
57
current_image_version=" $( mktemp) "
59
58
openstack image show -c properties -f json " $IMAGE_NAME " > " $current_image_version " || true
60
59
66
65
LOCAL_IMAGE_FILE=" ${CACHE_DIR} /$( echo -n " ${IMAGE_URL} ?sha256=${IMAGE_SHA} " | md5sum | cut -d ' ' -f1) "
67
66
68
67
if [ -f " $LOCAL_IMAGE_FILE " ]; then
69
- echo " Found cached image $LOCAL_IMAGE_FILE "
68
+ echo " Found cached image $LOCAL_IMAGE_FILE "
70
69
else
71
- echo " Downloading RHCOS image from:"
72
- echo " $IMAGE_URL "
73
-
74
- if [[ " $IMAGE_URL " == * .gz ]]; then
75
- curl --insecure --compressed -L -o " ${LOCAL_IMAGE_FILE} .gz" " $IMAGE_URL "
76
- gunzip -f " ${LOCAL_IMAGE_FILE} .gz"
77
- else
78
- curl --insecure --compressed -L -o " $LOCAL_IMAGE_FILE " " $IMAGE_URL "
79
- fi
70
+ echo " Downloading RHCOS image from:"
71
+ echo " $IMAGE_URL "
72
+
73
+ if [[ " $IMAGE_URL " == * .gz ]]; then
74
+ curl --insecure --compressed -L -o " ${LOCAL_IMAGE_FILE} .gz" " $IMAGE_URL "
75
+ gunzip -f " ${LOCAL_IMAGE_FILE} .gz"
76
+ else
77
+ curl --insecure --compressed -L -o " $LOCAL_IMAGE_FILE " " $IMAGE_URL "
78
+ fi
80
79
fi
81
80
82
81
echo " Verifying image..."
You can’t perform that action at this time.
0 commit comments