From 1efbde02f0a032601b6e8f147bef5a257c64eaad Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Sun, 4 Jun 2023 12:24:20 +0000 Subject: [PATCH] Added Git Detection (borked) --- ubuntu/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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