Skip to content

Commit

Permalink
read repos from file rather than the script
Browse files Browse the repository at this point in the history
  • Loading branch information
yochannah committed Jan 18, 2024
1 parent e6223da commit a6e720d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/localMethods.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ study_repos="view/_data"
since="2022-01-18T12:48:29Z"
until="2024-01-10T12:48:29Z"

repos=("https://github.com/open-life-science/open-life-science.github.io" "https://github.com/open-life-science/branding")
#repos=("https://github.com/open-life-science/open-life-science.github.io" "https://github.com/open-life-science/branding")

echo "//--- with variables:"
echo " --- since: $since"
Expand All @@ -21,6 +21,11 @@ else
echo " - creating 'repos' dir to store shallow-cloned repos"
mkdir repos
fi

while read -r line; do
repos+=("$line")
done <repos.txt

cd repos
echo " - Cloning study repos to $study_repos folder"

Expand Down

0 comments on commit a6e720d

Please sign in to comment.