mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 20:28:37 +08:00
ubuntu.sh: style, 20.04 comment and message wording
This commit is contained in:
committed by
Daniel Agar
parent
c9b82ad184
commit
9fed9f534e
@@ -1,6 +1,6 @@
|
|||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
## Bash script to setup PX4 development environment on Ubuntu LTS (18.04, 16.04).
|
## Bash script to setup PX4 development environment on Ubuntu LTS (20.04, 18.04, 16.04).
|
||||||
## Can also be used in docker.
|
## Can also be used in docker.
|
||||||
##
|
##
|
||||||
## Installs:
|
## Installs:
|
||||||
@@ -156,8 +156,7 @@ if [[ $INSTALL_NUTTX == "true" ]]; then
|
|||||||
# add arm-none-eabi-gcc to user's PATH
|
# add arm-none-eabi-gcc to user's PATH
|
||||||
exportline="export PATH=/opt/gcc-arm-none-eabi-${NUTTX_GCC_VERSION}/bin:\$PATH"
|
exportline="export PATH=/opt/gcc-arm-none-eabi-${NUTTX_GCC_VERSION}/bin:\$PATH"
|
||||||
|
|
||||||
if grep -Fxq "$exportline" $HOME/.profile;
|
if grep -Fxq "$exportline" $HOME/.profile; then
|
||||||
then
|
|
||||||
echo "${NUTTX_GCC_VERSION} path already set.";
|
echo "${NUTTX_GCC_VERSION} path already set.";
|
||||||
else
|
else
|
||||||
echo $exportline >> $HOME/.profile;
|
echo $exportline >> $HOME/.profile;
|
||||||
@@ -210,5 +209,5 @@ fi
|
|||||||
|
|
||||||
if [[ $INSTALL_NUTTX == "true" ]]; then
|
if [[ $INSTALL_NUTTX == "true" ]]; then
|
||||||
echo
|
echo
|
||||||
echo "Reboot or logout, login computer before attempting to build NuttX targets"
|
echo "Relogin or reboot computer before attempting to build NuttX targets"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user