From ef204e0a5411a20ee7e58350e5dada0260a30e20 Mon Sep 17 00:00:00 2001 From: Artem Smirnov Date: Thu, 20 Sep 2018 16:51:02 +0500 Subject: [PATCH] image_builder: add error handler --- image_builder/scripts/ros_install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/image_builder/scripts/ros_install.sh b/image_builder/scripts/ros_install.sh index da9a6eb1..34feaf46 100755 --- a/image_builder/scripts/ros_install.sh +++ b/image_builder/scripts/ros_install.sh @@ -125,7 +125,9 @@ echo_stamp "#12 Creating catkin_ws & Installing CLEVER-BUNDLE" \ && ln -s /home/pi/catkin_ws/src/clever/deploy/roscore.service /lib/systemd/system/roscore.service \ && ln -s /home/pi/catkin_ws/src/clever/deploy/clever.service /lib/systemd/system/clever.service \ && systemctl enable roscore \ - && systemctl enable clever + && systemctl enable clever \ + && echo_stamp "All CLEVER-BUNDLE was installed!" "SUCCESS" \ + || (echo_stamp "CLEVER-BUNDLE installation was failed!" "ERROR"; exit 1) echo_stamp "#13 Change permissions for catkin_ws" chown -Rf pi:pi /home/pi/catkin_ws