mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-30 17:58:14 +00:00 
			
		
		
		
	Fix shellcheck failures in update-workspace-mirror.sh
This commit is contained in:
		| @@ -55,7 +55,6 @@ | ||||
| ./hack/update-translations.sh | ||||
| ./hack/update-vendor-licenses.sh | ||||
| ./hack/update-vendor.sh | ||||
| ./hack/update-workspace-mirror.sh | ||||
| ./hack/verify-api-groups.sh | ||||
| ./hack/verify-boilerplate.sh | ||||
| ./hack/verify-cli-conventions.sh | ||||
|   | ||||
| @@ -29,8 +29,8 @@ BUCKET="gs://k8s-bazel-cache" | ||||
| gsutil acl get "${BUCKET}" > /dev/null | ||||
|  | ||||
| tmpfile=$(mktemp bazel_workspace_mirror.XXXXXX) | ||||
| trap "rm ${tmpfile}" EXIT | ||||
| cat "$1" | while read url; do | ||||
| trap 'rm ${tmpfile}' EXIT | ||||
| while read -r url; do | ||||
|   echo "${url}" | ||||
|   if gsutil ls "${BUCKET}/${url}" &> /dev/null; then | ||||
|     echo present | ||||
| @@ -40,4 +40,4 @@ cat "$1" | while read url; do | ||||
|         gsutil cp -a public-read "${tmpfile}" "${BUCKET}/${url}" | ||||
|     fi | ||||
|   fi | ||||
| done | ||||
| done < "$1" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 aaa
					aaa