diff --git a/ubuntu/main.tf b/ubuntu/main.tf index e9237a7..1a830fb 100644 --- a/ubuntu/main.tf +++ b/ubuntu/main.tf @@ -60,7 +60,7 @@ resource "coder_agent" "main" { # Clone Git Repo cd ~/ echo OUTPUT: '${data.coder_parameter.git_repo.value}' - if [ "${data.coder_parameter.git_repo.value}" != " " ] + if [ "${data.coder_parameter.git_repo.value}" != " " ] || [ ! -d "~/${data.coder_workspace.me.name}" ] then git clone ${data.coder_parameter.git_repo.value} fi