-
Notifications
You must be signed in to change notification settings - Fork 5
/
05-populate-github-locally.sh
executable file
·75 lines (51 loc) · 1.06 KB
/
05-populate-github-locally.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env bash
# populates gitrepo directory
# make sure you have ssh registered at github
USERNAME="msperlin"
name_main_dir="GitRepo"
echo "Populating gitrepo folder"
cd /home/$USERNAME/
mkdir $name_main_dir
cd $name_main_dir
# clone r pkgs
name_dir="01-r-pkgs"
my_repos=( "GetDFPData2" "vdr" "GetFREData" "classtools" )
mkdir $name_dir
cd $name_dir
for i_repo in "${my_repos[@]}"
do
git clone [email protected]:msperlin/$i_repo.git
done
# other pgks
git clone [email protected]:ropensci/yfR.git
cd ..
# books
name_dir="02-books"
my_repos=( "chapter-dataviz-saude.gov" )
mkdir $name_dir
cd $name_dir
for i_repo in "${my_repos[@]}"
do
git clone [email protected]:msperlin/$i_repo.git
done
cd ..
# sites
name_dir="03-sites"
my_repos=( "msperlin-blog" )
mkdir $name_dir
cd $name_dir
for i_repo in "${my_repos[@]}"
do
git clone [email protected]:msperlin/$i_repo.git
done
cd ..
# others
name_dir="04-others"
my_repos=( "UBUNTU-Fresh-Install" )
mkdir $name_dir
cd $name_dir
for i_repo in "${my_repos[@]}"
do
git clone [email protected]:msperlin/$i_repo.git
done
cd ..