Skip to content

Commit

Permalink
fix: grep error
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGuyWithoutH committed Aug 3, 2024
1 parent 03ec6af commit a338907
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker_humble_jetson_torch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ RUN /etc/init.d/udev restart
WORKDIR /home

RUN echo "Ros deps installation from source with ros2_install script"
# commands will be appended/run by the entrypoint which sources the ROS environment
# copy the necessary scripts
COPY ros_entrypoint.sh ros2_install.sh .

# Install common ROS 2 packages
Expand Down
12 changes: 6 additions & 6 deletions docker_humble_jetson_torch/ros2_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ if [ "$SOURCE" = "rosinstall_generator" ]; then
ros_packages=$(ros2 pkg list)
echo "ROS2 packages installed:"
echo "$ros_packages"
if echo "$ros_packages" | grep "$@"; then
echo "$@ found"
else
echo "$@ not found"
exit 1
fi
# if echo "$ros_packages" | grep "$@"; then
# echo "$@ found"
# else
# echo "$@ not found"
# exit 1
# fi
fi

0 comments on commit a338907

Please sign in to comment.