diff --git a/terraform/modules/test_cdn/test_cdn.tf b/terraform/modules/test_cdn/test_cdn.tf index 041d1c99..ed5b6f48 100644 --- a/terraform/modules/test_cdn/test_cdn.tf +++ b/terraform/modules/test_cdn/test_cdn.tf @@ -23,7 +23,7 @@ resource "null_resource" "git_clone" { } provisioner "local-exec" { - command = "git clone ${var.source_code_repo} ${local.clone_dir}" + command = "if [ ! -d \"${local.clone_dir}\" ]; then git clone ${var.source_code_repo} ${local.clone_dir}; fi" } }