-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgazebo.bash
executable file
·68 lines (56 loc) · 2.33 KB
/
gazebo.bash
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
#!/bin/bash
# 実行方法
# $ chmod +x gazebo.bash
# $ ./gazebo.bash
USERNAME=$(whoami)
if [ -d "/home/$USERNAME/.gazebo/models" ]; then
if [ -d "/home/$USERNAME/.gazebo/models/storage_model" ]; then
cd /home/$USERNAME/.gazebo/models/storage_model
echo "はんこ置きモデル リポジトリを更新します"
git pull
else
cd /home/$USERNAME/.gazebo/models
echo "はんこ置きモデル リポジトリをクローンします"
git clone https://github.com/RobotDesign3-Team5/storage_model.git
fi
echo -n -e "\n"
if [ -d "/home/$USERNAME/.gazebo/models/inkpad_model" ]; then
cd /home/$USERNAME/.gazebo/models/inkpad_model
echo "朱肉モデル リポジトリを更新します"
git pull
else
cd /home/$USERNAME/.gazebo/models
echo "朱肉モデル リポジトリをクローンします"
git clone https://github.com/RobotDesign3-Team5/inkpad_model.git
fi
echo -n -e "\n"
if [ -d "/home/$USERNAME/.gazebo/models/sealmat_model" ]; then
cd /home/$USERNAME/.gazebo/models/sealmat_model
echo "はんこマットモデル リポジトリを更新します"
git pull
else
cd /home/$USERNAME/.gazebo/models
echo "はんこマットモデル リポジトリをクローンします"
git clone https://github.com/RobotDesign3-Team5/sealmat_model.git
fi
echo -n -e "\n"
if [ -d "/home/$USERNAME/.gazebo/models/TissuePaper_model" ]; then
cd /home/$USERNAME/.gazebo/models/TissuePaper_model
echo "ティッシュペーパーモデル リポジトリを更新します"
git pull
else
cd /home/$USERNAME/.gazebo/models
echo "ティッシュペーパーモデル リポジトリをクローンします"
git clone https://github.com/RobotDesign3-Team5/TissuePaper_model.git
fi
echo -n -e "\n"
if [ -d "/home/$USERNAME/.gazebo/models/colorseal_model" ]; then
cd /home/$USERNAME/.gazebo/models/colorseal_modelco
echo "はんこモデル リポジトリを更新します"
git pull
else
cd /home/$USERNAME/.gazebo/models
echo "はんこモデル リポジトリをクローンします"
git clone https://github.com/RobotDesign3-Team5/colorseal_model.git
fi
fi