Skip to content

Commit

Permalink
Change ROS log upload script to upload any file that contains .bag (i…
Browse files Browse the repository at this point in the history
…ncluding active files) (#564)
  • Loading branch information
jeferal authored Nov 6, 2023
1 parent d3a2b67 commit 8cb2614
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ function copy_logs
docker exec $container_name bash -c "rosnode kill $record_node" || true
docker exec $container_name bash -c "rosnode list | grep /bag_rotate | xargs -I{} rosnode kill {}" || true
sleep 1
latestbag=$(docker exec $container_name bash -c "ls -dtr $docker_ros_logs_folder/*.bag | tail -1") || true
latestbag_tmp=$(docker exec $container_name bash -c "ls -dtr $docker_user_home/*.bag | tail -1") || true
latestbag=$(docker exec $container_name bash -c "ls -dtr $docker_ros_logs_folder/*.bag* | tail -1") || true
latestbag_tmp=$(docker exec $container_name bash -c "ls -dtr $docker_user_home/*.bag* | tail -1") || true
docker exec $container_name bash -c "mkdir -p $docker_logs_temp" || true
docker exec $container_name bash -c "cp $docker_ros_logs_folder/stderr.log $docker_logs_temp" || true
docker exec $container_name bash -c "rm $docker_ros_logs_folder/std*.log" || true
Expand Down

0 comments on commit 8cb2614

Please sign in to comment.