Skip to content

Commit 861a5f8

Browse files
committed
prepare for private repos
1 parent c5950bf commit 861a5f8

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

all-projects.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,21 @@ cloneFetchAll() {
209209
forAllProjects cloneFetch
210210

211211
# filter out all projects that could not be cloned (probably private):
212+
local copy=()
213+
for repo in "${repoSeq[@]}"; do
214+
if [[ -d ../$repo/.git ]]; then
215+
copy+=($repo)
216+
fi
217+
done
218+
repoSeq=(${copy[@]})
219+
212220
local copy=()
213221
for repo in "${repoName[@]}"; do
214222
if [[ -d ../$repo/.git ]]; then
215-
copy+=($repo)
216-
fi
223+
copy+=($repo)
224+
fi
217225
done
218-
repoName=(${copy[@]})
226+
repoName=(${copy[@]})
219227
}
220228
cloneFetch() {
221229
local repo="$1"; shift

0 commit comments

Comments
 (0)