mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Tools: allow to skip completion installation
This commit is contained in:
parent
6ebc7622fe
commit
31338f955b
@ -250,6 +250,7 @@ grep -Fxq "$exportline2" ~/$SHELL_LOGIN 2>/dev/null || {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [[ $SKIP_AP_COMPLETION_ENV -ne 1 ]]; then
|
||||||
exportline3="source $ARDUPILOT_ROOT/Tools/completion/completion.bash";
|
exportline3="source $ARDUPILOT_ROOT/Tools/completion/completion.bash";
|
||||||
grep -Fxq "$exportline3" ~/$SHELL_LOGIN 2>/dev/null || {
|
grep -Fxq "$exportline3" ~/$SHELL_LOGIN 2>/dev/null || {
|
||||||
if maybe_prompt_user "Add ArduPilot Bash Completion to your bash shell [N/y]?" ; then
|
if maybe_prompt_user "Add ArduPilot Bash Completion to your bash shell [N/y]?" ; then
|
||||||
@ -259,7 +260,7 @@ grep -Fxq "$exportline3" ~/$SHELL_LOGIN 2>/dev/null || {
|
|||||||
echo "Skipping adding ArduPilot Bash Completion."
|
echo "Skipping adding ArduPilot Bash Completion."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
exportline4="export PATH=/usr/lib/ccache:\$PATH";
|
exportline4="export PATH=/usr/lib/ccache:\$PATH";
|
||||||
grep -Fxq "$exportline4" ~/$SHELL_LOGIN 2>/dev/null || {
|
grep -Fxq "$exportline4" ~/$SHELL_LOGIN 2>/dev/null || {
|
||||||
|
Loading…
Reference in New Issue
Block a user