Add an option to list known repositories
This commit is contained in:
parent
c68b60b556
commit
a86f247bea
1 changed files with 11 additions and 5 deletions
|
|
@ -16,8 +16,14 @@ sync_repo () {
|
|||
echo
|
||||
}
|
||||
|
||||
while read -r repo_root; do
|
||||
for repo in $(list_repos "${repo_root}"); do
|
||||
sync_repo "${repo}"
|
||||
done
|
||||
done < "${REPO_ROOT_FILE}"
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue