From 74a6ac05218f081dfb15c0328c604ec320d5a6d0 Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Sun, 4 Jun 2023 12:42:52 +0000 Subject: [PATCH] Added Git Detection (borked) --- ubuntu/main.tf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ubuntu/main.tf b/ubuntu/main.tf index 1a830fb..9e9f2d3 100644 --- a/ubuntu/main.tf +++ b/ubuntu/main.tf @@ -59,8 +59,7 @@ resource "coder_agent" "main" { echo "[settings]" >> ~/.wakatime.cfg && echo "api_url = ${var.waka_api_url}" >> ~/.wakatime.cfg && echo "api_key = ${var.waka_api_key}" >> ~/.wakatime.cfg # Clone Git Repo cd ~/ - echo OUTPUT: '${data.coder_parameter.git_repo.value}' - if [ "${data.coder_parameter.git_repo.value}" != " " ] || [ ! -d "~/${data.coder_workspace.me.name}" ] + if [ "${data.coder_parameter.git_repo.value}" != " " ] && [ ! -d "${data.coder_workspace.me.name}" ] then git clone ${data.coder_parameter.git_repo.value} fi