From c3c324158fe334be6d6aaac9cbc40e90fed0bde7 Mon Sep 17 00:00:00 2001 From: Artem Smirnov Date: Mon, 18 Jun 2018 20:51:29 +0300 Subject: [PATCH] image_builder: fix for add environment --- image_builder/scripts/ros_install.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/image_builder/scripts/ros_install.sh b/image_builder/scripts/ros_install.sh index 23ca1f17..bdc5fc90 100755 --- a/image_builder/scripts/ros_install.sh +++ b/image_builder/scripts/ros_install.sh @@ -148,15 +148,15 @@ cd /home/pi \ && make \ && make install -echo -e "\033[0;31m\033[1m$(date) | #15 Adding ENV vars\033[0m\033[0m" +echo -e "\033[0;31m\033[1m$(date) | #15 Setup environment\033[0m\033[0m" -# setup environment -echo "LANG=C.UTF-8" >> /home/pi/.bashrc -echo "LC_ALL=C.UTF-8" >> /home/pi/.bashrc -echo "ROS_DISTRO=kinetic" >> /home/pi/.bashrc -echo "export ROS_IP=192.168.11.1" >> /home/pi/.bashrc - -echo "source /opt/ros/kinetic/setup.bash" >> /home/pi/.bashrc +cat < /dev/null +LANG=C.UTF-8 +LC_ALL=C.UTF-8 +ROS_DISTRO=kinetic +export ROS_IP=192.168.11.1 +source /opt/ros/kinetic/setup.bash +EOF chown -Rf pi:pi /home/pi