-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstartup.sh
35 lines (29 loc) · 882 Bytes
/
startup.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
#pull branch
openpose_ros2_branch="main"
# clone or pull openpose_ros2
if [ -d ./openpose_ros2 ]; then
echo "[openpose_ros2] is already cloned."
while :
do
read -p "Update [openpose_ros2?(Y/n)" pull_ans
if [ "$pull_ans" = "Y" -o "$pull_ans" = "y" ]; then
cd openpose_ros2
git pull origin $openpose_ros2_branch
cd ../
echo "[openpose_ros2] is updated!"
echo ""
break
elif [ "$pull_ans" = "N" -o "$pull_ans" = "n" ]; then
echo "Did not update [openpose_ros2]."
echo ""
break
else
echo "Input Y or n key"
echo ""
fi
done
else
git clone -b $openpose_ros2_branch [email protected]:Rits-Interaction-Laboratory/openpose_ros2.git
echo "[openpose_ros2]'s clone is complete!"
echo ""
fi