From a02ad0237199d76d575825a8119471d8a4ab1369 Mon Sep 17 00:00:00 2001 From: Steve McMaster Date: Thu, 1 Dec 2022 00:01:17 -0500 Subject: [PATCH] update --- alpine/main.tf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/alpine/main.tf b/alpine/main.tf index abd24c0..432bf07 100644 --- a/alpine/main.tf +++ b/alpine/main.tf @@ -37,11 +37,13 @@ resource "coder_agent" "main" { fi # Clone the aports repository - [ -d aports ] || git clone https://gitlab.alpinelinux.org/mcm/aports.git - ( - cd aports - git pull https://gitlab.alpinelinux.org/alpine/aports.git - ) + if [ ! -d aports ]; then + git clone https://gitlab.alpinelinux.org/mcm/aports.git + ( + cd aports + git pull https://gitlab.alpinelinux.org/alpine/aports.git + ) + fi # Generate abuild keys abuild-keygen -a -i