Skip to content

Commit 11bfd8d

Browse files
authored
fix: ignore if cache path exists (#49)
1 parent 4322aae commit 11bfd8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ locals {
3535
) + length(null_resource.gcloud_auth_google_credentials.*.triggers,
3636
) + length(null_resource.run_command.*.triggers)
3737

38-
prepare_cache_command = "mkdir ${local.cache_path}"
38+
prepare_cache_command = "mkdir -p ${local.cache_path}"
3939
download_gcloud_command = "curl -sL -o ${local.cache_path}/google-cloud-sdk.tar.gz ${local.gcloud_download_url}"
4040
download_jq_command = "curl -sL -o ${local.cache_path}/jq ${local.jq_download_url} && chmod +x ${local.cache_path}/jq"
4141
decompress_command = "tar -xzf ${local.gcloud_tar_path} -C ${local.cache_path} && cp ${local.cache_path}/jq ${local.cache_path}/google-cloud-sdk/bin/"

0 commit comments

Comments
 (0)