mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-30 00:39:32 +00:00
Fix checking out in build
This commit is contained in:
@@ -79,11 +79,9 @@ img-resize ${IMAGE_PATH} max '5G'
|
||||
# Checkout to tag's branch if built with travis tag
|
||||
if [[ ! -z ${TRAVIS_TAG} ]]; then
|
||||
cd ${REPO_DIR}
|
||||
echo_stamp "Checkout to master from ${TRAVIS_TAG}" "INFO"
|
||||
echo_stamp "Checkout to origin/pinocchio_work from ${TRAVIS_TAG}" "INFO"
|
||||
git fetch
|
||||
git checkout --track origin/pinocchio_work
|
||||
git checkout master
|
||||
git checkout pinocchio_work -- Drone/client_config.ini
|
||||
cd /
|
||||
fi
|
||||
|
||||
|
||||
@@ -73,6 +73,11 @@ catkin_make --pkg clever_flight_routines
|
||||
catkin_make aruco_pose
|
||||
source devel/setup.bash
|
||||
|
||||
echo_stamp "Checkout clever-show to master, but fetch config from pinocchio_work"
|
||||
cd /home/pi/clever-show
|
||||
git checkout master
|
||||
git checkout pinocchio_work -- Drone/client_config.ini
|
||||
|
||||
echo_stamp "Change clever-show and catkin_ws owner to pi"
|
||||
chown -Rf pi:pi /home/pi/clever-show/
|
||||
chown -Rf pi:pi /home/pi/catkin_ws/
|
||||
|
||||
Reference in New Issue
Block a user