Skip to content

Commit a968ea8

Browse files
Move apt update
1 parent f05fe54 commit a968ea8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

installROS.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,17 @@ tput sgr0
113113
sudo apt-add-repository universe
114114
sudo apt-add-repository multiverse
115115
sudo apt-add-repository restricted
116+
tput setaf 2
117+
echo "Updating apt list"
118+
tput sgr0
119+
sudo apt update
116120

117121
# Setup sources.lst
118122
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
119123
# Setup keys
120124
sudo apt install curl
121125
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
122126

123-
tput setaf 2
124-
echo "Updating apt-get"
125-
tput sgr0
126-
sudo apt-get update
127127
tput setaf 2
128128
echo "Installing ROS"
129129
tput sgr0

0 commit comments

Comments
 (0)