Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ sudo apt install \
```

```bash
$ mkdir -p colcon_ws/src
$ mkdir -p ~/colcon_ws/src
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve the robustness of this command, it's a good practice to quote paths that involve shell expansions like ~. This prevents errors if a user's home directory path contains spaces or other special characters.

While this might be an edge case, quoting the path makes the instructions more reliable for all users and is a good defensive practice in shell commands.

Suggested change
$ mkdir -p ~/colcon_ws/src
$ mkdir -p "~/colcon_ws/src"

$ cd ~/colcon_ws/src/
$ git clone -b humble https://github.com/ROBOTIS-GIT/DynamixelSDK.git
$ git clone -b humble https://github.com/ROBOTIS-GIT/open_manipulator.git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This will ensure you have the latest and most compatible version for your system
#### Clone the Repository

```bash
$ mkdir -p ros2_ws/src
$ mkdir -p ~/ros2_ws/src
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To make this command more robust, it's best to quote paths that use shell expansions like ~. This will prevent the command from failing if a user's home directory path contains spaces or other special characters. Quoting the path is a good defensive measure that improves the reliability of the documentation for all users.

Suggested change
$ mkdir -p ~/ros2_ws/src
$ mkdir -p "~/ros2_ws/src"

$ cd ~/ros2_ws/src
$ git clone -b jazzy https://github.com/ROBOTIS-GIT/DynamixelSDK.git && \
git clone -b jazzy https://github.com/ROBOTIS-GIT/dynamixel_interfaces.git && \
Expand Down