forked from codeprismtechnologies/hfn-grpc-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetProto.sh
executable file
·55 lines (55 loc) · 1.63 KB
/
getProto.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
npm install fs axios dotenv
if [ "$1" == "dev" ]; then
echo Environment: "Development" and branch "$2"
else
echo Environment: "QA" and branch "master"
fi
rm -rf protos
rm -rf temp
mkdir temp
mkdir protos
cd temp
git clone https://github.com/HeartfulnessInstitute/heartintune-common
if [ "$1" == "dev" ]; then
cd heartintune-common
git switch $2
cd ..
fi
cp -r heartintune-common/heartintune-common-api/src/main/proto/* ../protos
git clone https://github.com/HeartfulnessInstitute/heartintune-profile-service.git
if [ "$1" == "dev" ]; then
cd heartintune-profile-service
git switch $2
cd ..
fi
cp -R heartintune-profile-service/heartintune-profile-api/src/main/proto/ ../protos
git clone https://github.com/HeartfulnessInstitute/gamification-service.git
if [ "$1" == "dev" ]; then
cd gamification-service
git switch $2
cd ..
fi
cp -r gamification-service/gamification-api/src/main/proto/ ../protos
git clone https://github.com/HeartfulnessInstitute/guided-meditation-service.git
if [ "$1" == "dev" ]; then
cd guided-meditation-service
git switch $2
cd ..
fi
cp -r guided-meditation-service/guided-meditation-api/src/main/proto/ ../protos
git clone https://github.com/HeartfulnessInstitute/live-meditation-service.git
if [ "$1" == "dev" ]; then
cd live-meditation-service
git switch $2
cd ..
fi
cp -r live-meditation-service/live-meditation-api/src/main/proto/ ../protos
git clone https://github.com/HeartfulnessInstitute/hfn-events-service
if [ "$1" == "dev" ]; then
cd hfn-events-service
git switch $2
cd ..
fi
cp -r hfn-events-service/hfn-events-api/src/main/proto/ ../protos
cd ..
rm -rf temp