From b99606de1c71eabcb8a2932fd2d20a2e7b8c8102 Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Sun, 18 Aug 2024 18:26:05 +0100 Subject: [PATCH] build-repository.sh --- build-repository.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build-repository.sh b/build-repository.sh index 8f2a0a9..5057fed 100755 --- a/build-repository.sh +++ b/build-repository.sh @@ -15,6 +15,8 @@ bazel run @aptly --config=ci -- -config=${PWD}/.aptly config show REPOS=(focal jammy buster bullseye) EXISTING_REPOS=$(bazel run @aptly repo list -- -json | jq -r '.[] | .Name') +echo "$EXISTING_REPOS" + for repo in "${REPOS[@]}"; do if ! echo "$EXISTING_REPOS" | grep -q "^${repo}$"; then echo "Create repo: ${repo}"