Add an option to list known repositories

This commit is contained in:
Ohad Livne 2025-06-04 22:47:36 +03:00
parent c68b60b556
commit a86f247bea
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D

View file

@ -16,8 +16,14 @@ sync_repo () {
echo
}
if [ "list" = "$1" ]; then
while read -r repo_root; do
list_repos "${repo_root}"
done < "${REPO_ROOT_FILE}"
else
while read -r repo_root; do
for repo in $(list_repos "${repo_root}"); do
sync_repo "${repo}"
done
done < "${REPO_ROOT_FILE}"
fi