mirror of
https://github.com/bitnami/containers.git
synced 2026-02-10 11:47:39 +08:00
Sort repositories
Signed-off-by: Bitnami Containers <containers@bitnami.com>
This commit is contained in:
@@ -92,12 +92,12 @@ function syncRepos() {
|
||||
|
||||
# Build array of app names since we need to exclude them when moving files
|
||||
local apps=("mock")
|
||||
local -r urls=($(echo "$repos" | jq -r '.[].html_url'))
|
||||
local -r urls=($(echo "$repos" | jq -r '.[].html_url' | sort | uniq))
|
||||
for repo_url in "${urls[@]}"; do
|
||||
name="${repo_url:42}" # 42 is the length of https://github.com/bitnami/bitnami-docker-
|
||||
apps=("${apps[@]}" "$name")
|
||||
done
|
||||
echo "$repos" | jq -r '.[].html_url' | while read -r repo_url; do
|
||||
echo "$repos" | jq -r '.[].html_url' | sort | uniq | while read -r repo_url; do
|
||||
name="${repo_url:42}" # 42 is the length of https://github.com/bitnami/bitnami-docker-
|
||||
(
|
||||
cd "$TARGET_DIR"
|
||||
|
||||
Reference in New Issue
Block a user