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}"