Skip to content

Commit

Permalink
update ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
ROBOTIS-Will committed May 17, 2021
1 parent be7638e commit 57b1471
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ DEPENDENCY_OUTPUT=$(arduino --install-boards OpenCR:OpenCR 2>&1)
if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96"; else echo -e "\xe2\x9c\x93"; fi

# Update OpenCR package manually
git clone --recursive https://github.com/ROBOTIS-GIT/OpenCR.git --branch master --single-branch
if [ $1 == "refs/heads/master" ]; then
git clone --recursive https://github.com/ROBOTIS-GIT/OpenCR.git --branch master --single-branch
elif [ $1 == "refs/heads/develop" ]; then
git clone --recursive https://github.com/ROBOTIS-GIT/OpenCR.git --branch develop --single-branch
else
echo -e "\xe2\x9c\x93";
fi

rm -rf $HOME/.arduino15/packages/OpenCR/hardware
mkdir $HOME/Arduino/hardware
mkdir $HOME/Arduino/hardware/OpenCR
Expand Down

0 comments on commit 57b1471

Please sign in to comment.