Skip to content

Commit b780a7b

Browse files
tangzz98mysterywolf
authored andcommitted
Add apt update/upgrade
1 parent b70a17f commit b780a7b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

install_macos.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ if ! [ -x "$(command -v brew)" ]; then
1818
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
1919
fi
2020

21+
brew update
22+
brew upgrade
23+
2124
if ! [ -x "$(command -v git)" ]; then
2225
echo "Installing git."
2326
brew install git

install_ubuntu.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ $RTT_PYTHON --version 2 > /dev/null || {
1313
exit 1
1414
}
1515

16+
sudo apt update
17+
sudo apt upgrade
18+
1619
if ! [ -x "$(command -v gcc)" ]; then
1720
echo "Installing gcc."
1821
sudo apt install gcc
@@ -30,7 +33,7 @@ fi
3033

3134
$RTT_PYTHON -m pip list > /dev/null || {
3235
echo "Installing pip."
33-
sudo apt install python3-pip
36+
sudo apt install $RTT_PYTHON-pip
3437
}
3538

3639
if ! [ -x "$(command -v scons)" ]; then

0 commit comments

Comments
 (0)