forked from Archive/PX4-Autopilot
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:
parent
c8d7027546
commit
c9b82ad184
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue