diff --git a/install_macos.sh b/install_macos.sh index 7c48b96e..cf4b8c53 100755 --- a/install_macos.sh +++ b/install_macos.sh @@ -18,6 +18,9 @@ if ! [ -x "$(command -v brew)" ]; then /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" fi +brew update +brew upgrade + if ! [ -x "$(command -v git)" ]; then echo "Installing git." brew install git diff --git a/install_ubuntu.sh b/install_ubuntu.sh index 88e615af..cdf8bef7 100755 --- a/install_ubuntu.sh +++ b/install_ubuntu.sh @@ -13,6 +13,9 @@ $RTT_PYTHON --version 2 > /dev/null || { exit 1 } +sudo apt update +sudo apt upgrade + if ! [ -x "$(command -v gcc)" ]; then echo "Installing gcc." sudo apt install gcc @@ -30,7 +33,7 @@ fi $RTT_PYTHON -m pip list > /dev/null || { echo "Installing pip." - sudo apt install python3-pip + sudo apt install $RTT_PYTHON-pip } if ! [ -x "$(command -v scons)" ]; then