Fixed invaild examples path for travis.
@@ -43,7 +43,7 @@ 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 develop --single-branch
rm -rf $HOME/.arduino15/packages/OpenCR/hardware
-mv -rf $PWD/OpenCR/arduino/opencr_arduino/opencr $HOME/Arduino/hardware/OpenCR/OpenCR
+mv $PWD/OpenCR/arduino/opencr_arduino/opencr $HOME/Arduino/hardware/OpenCR/OpenCR
# install random lib so the arduino IDE grabs a new library index
# see: https://github.com/arduino/Arduino/issues/3535
@@ -90,7 +90,7 @@ function build_platform()
declare -a examples
# loop through results and add them to the array
- examples=($(find $HOME/.arduino15/sketchbook/hardware/OpenCR/OpenCR/libraries/turtlebot3/examples -name "*.pde" -o -name "*.ino"))
+ examples=($(find $HOME/Arduino/hardware/OpenCR/OpenCR/libraries/turtlebot3/examples -name "*.pde" -o -name "*.ino"))
# get the last example in the array
local last="${examples[@]:(-1)}"
