mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Tools: Correct install-prereqs-ubuntu user input text
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
060f97b8e7
commit
57955421b5
@ -113,7 +113,7 @@ ARDUPILOT_ROOT=$(realpath "$SCRIPT_DIR/../../")
|
||||
|
||||
exportline="export PATH=$OPT/$ARM_ROOT/bin:\$PATH";
|
||||
grep -Fxq "$exportline" ~/.profile 2>/dev/null || {
|
||||
if maybe_prompt_user "Add $OPT/$ARM_ROOT/bin to your PATH [Y/n]?" ; then
|
||||
if maybe_prompt_user "Add $OPT/$ARM_ROOT/bin to your PATH [N/y]?" ; then
|
||||
echo $exportline >> ~/.profile
|
||||
eval $exportline
|
||||
else
|
||||
@ -123,7 +123,7 @@ grep -Fxq "$exportline" ~/.profile 2>/dev/null || {
|
||||
|
||||
exportline2="export PATH=$ARDUPILOT_ROOT/$ARDUPILOT_TOOLS:\$PATH";
|
||||
grep -Fxq "$exportline2" ~/.profile 2>/dev/null || {
|
||||
if maybe_prompt_user "Add $ARDUPILOT_ROOT/$ARDUPILOT_TOOLS to your PATH [Y/n]?" ; then
|
||||
if maybe_prompt_user "Add $ARDUPILOT_ROOT/$ARDUPILOT_TOOLS to your PATH [N/y]?" ; then
|
||||
echo $exportline2 >> ~/.profile
|
||||
eval $exportline2
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user