File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ function check_location() {
73
73
location=" $1 "
74
74
readonly cache_file=" ./.calculate-cache-response-cache.yaml"
75
75
# check response_cache.yaml for the cache
76
- if [[ -f " ${cache_file} " ]]; then
76
+ if [[ -f ${cache_file} ]]; then
77
77
cached=$( yq -e eval " .[\" ${location} \" ]" " ${cache_file} " 2> /dev/null) && echo " ${cached} " && return
78
78
else
79
79
touch " ${cache_file} "
@@ -161,15 +161,15 @@ for cache_method in prior after; do
161
161
for template in " ${tepmlates_used_in_test_yml[@]} " ; do
162
162
location_digest_size_hash=$( print_location_digest_size_hash_from_template " ${template} " ) || continue
163
163
read -r location digest size hash containerd containerd_location containerd_digest containerd_size <<< " ${location_digest_size_hash}"
164
- if [[ ${cache_method} = prior ]]; then
164
+ if [[ ${cache_method} == prior ]]; then
165
165
key=${runner_os} -${hash}
166
- elif [[ ${digest} = null ]]; then
166
+ elif [[ ${digest} == null ]]; then
167
167
key=image:$( basename " ${location} " ) -url-sha256:$( echo -n " ${location} " | sha256sum | cut -d' ' -f1)
168
168
else
169
169
key=image:$( basename " ${location} " ) -${digest}
170
170
fi
171
- if [[ ${containerd} = true ]]; then
172
- if [[ ${cache_method} = prior ]]; then
171
+ if [[ ${containerd} == true ]]; then
172
+ if [[ ${cache_method} == prior ]]; then
173
173
# previous caching method packages the containerd archive with the image
174
174
size=$(( size + containerd_size))
175
175
else
You can’t perform that action at this time.
0 commit comments