Skip to content

Commit 8502e6f

Browse files
committed
Remove unused -y flag
1 parent e46cde9 commit 8502e6f

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎docs/10-prerequisites/30-docker/01-installation.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Please follow the official guide for other operating systems than Ubuntu OS.
1313

1414
Add docker's GPG key:
1515
```bash
16-
sudo apt-get -y update
16+
sudo apt-get update
1717
sudo apt-get -y install ca-certificates curl
1818
sudo install -m 0755 -d /etc/apt/keyrings
1919
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
@@ -26,7 +26,7 @@ echo \
2626
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
2727
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
2828
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
29-
sudo apt-get -y update
29+
sudo apt-get update
3030
```
3131

3232
## 2. Install the Docker engine

‎docs/10-prerequisites/30-docker/10-building-images.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ docker build -t my-app:latest .
4343
```dockerfile
4444
FROM ctumrs/ros:noetic
4545

46-
RUN apt-get -y update
46+
RUN apt-get update
4747

4848
# workaround interactive prompts during apt installations
4949
RUN echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections

‎versioned_docs/version-1.5.0/10-prerequisites/25-ros2/10-installation.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o
1414

1515
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
1616

17-
sudo apt-get -y update
17+
sudo apt-get update
1818

1919
sudo apt-get -y install ros-jazzy-desktop-full ros-dev-tools
2020
```

‎versioned_docs/version-1.5.0/10-prerequisites/30-docker/01-installation.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Please follow the official guide for other operating systems than Ubuntu OS.
1313

1414
Add docker's GPG key:
1515
```bash
16-
sudo apt-get -y update
16+
sudo apt-get update
1717
sudo apt-get -y install ca-certificates curl
1818
sudo install -m 0755 -d /etc/apt/keyrings
1919
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
@@ -26,7 +26,7 @@ echo \
2626
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
2727
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
2828
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
29-
sudo apt-get -y update
29+
sudo apt-get update
3030
```
3131

3232
## 2. Install the Docker engine

‎versioned_docs/version-1.5.0/10-prerequisites/30-docker/10-building-images.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ docker build -t my-app:latest .
4343
```dockerfile
4444
FROM ctumrs/ros:noetic
4545

46-
RUN apt-get -y update
46+
RUN apt-get update
4747

4848
# workaround interractive prompts during apt installations
4949
RUN echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections

0 commit comments

Comments
 (0)