Skip to content

Commit

Permalink
fix git clone not to clone if directory already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
markdboyd committed Nov 15, 2023
1 parent 23d8524 commit 0b19805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/modules/test_cdn/test_cdn.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down

0 comments on commit 0b19805

Please sign in to comment.