ubuntu.sh: source .profile before checking for ARM GCC

to avoid downloading and installing ARM GCC again if the script is
reran immediately after e.g. because it failed the first time.
This commit is contained in:
Matthias Grob 2020-06-29 21:59:17 +02:00 committed by Daniel Agar
parent c8d7027546
commit c9b82ad184
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ if [[ $INSTALL_NUTTX == "true" ]]; then
# arm-none-eabi-gcc
NUTTX_GCC_VERSION="7-2017-q4-major"
source $HOME/.profile # load changed path for the case the script is reran before relogin
if [ $(which arm-none-eabi-gcc) ]; then
GCC_VER_STR=$(arm-none-eabi-gcc --version)
GCC_FOUND_VER=$(echo $GCC_VER_STR | grep -c "${NUTTX_GCC_VERSION}")