Skip to content

Commit 4651c77

Browse files
committed
fix(setup.sh): ros apt key download, add python bins to PATH
1 parent d5e6b92 commit 4651c77

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/setup.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ SHELL_CONFIG="$(cat <<EOF
1010
1111
# >>> bit-bots initialize >>>
1212
13+
# Add python pip bins to PATH
14+
export PATH="\$HOME/.local/bin:\$PATH"
15+
1316
# Ignore some deprecation warnings
1417
export PYTHONWARNINGS="ignore:::setuptools.command.install,ignore:::setuptools.command.easy_install,ignore:::pkg_resources,ignore:easy_install command is deprecated,ignore:setup.py install is deprecated"
1518
@@ -59,7 +62,7 @@ setup_ros() {
5962
if [[ ! -f /etc/apt/sources.list.d/ros2.list ]]; then
6063
echo "Adding ROS 2 repository..."
6164
sudo apt install -y curl lsb-release
62-
curl -fsSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key > /usr/share/keyrings/ros-archive-keyring.gpg
65+
sudo sh -c "curl -fsSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key > /usr/share/keyrings/ros-archive-keyring.gpg"
6366
sudo sh -c "echo 'deb [signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main' > /etc/apt/sources.list.d/ros2.list"
6467
fi
6568

0 commit comments

Comments
 (0)