File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -166,10 +166,13 @@ function download_vendor_archive {
166
166
archive_name=" vendor.v1.tgz"
167
167
archive_download_url=" https://storage.googleapis.com/kubebuilder-vendor/$archive_name "
168
168
archive_path=" $tmp_root /$archive_name "
169
- if [ ! -f $archive_path ]; then
170
- header_text " downloading vendor archive $archive_path "
171
- curl -sL ${archive_download_url} -o " $archive_path "
169
+ header_text " checking the path $archive_path to download the $archive_name "
170
+ if [ -f $archive_path ]; then
171
+ header_text " removing file which exists"
172
+ rm $archive_path
172
173
fi
174
+ header_text " downloading vendor archive from $archive_download_url "
175
+ curl -sL ${archive_download_url} -o " $archive_path "
173
176
}
174
177
175
178
function restore_go_deps {
You can’t perform that action at this time.
0 commit comments