From 31338f955b5beee741c7b3bd64c7e3c7c59c91f4 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Wed, 2 Sep 2020 10:49:15 +0200 Subject: [PATCH] Tools: allow to skip completion installation --- Tools/environment_install/install-prereqs-ubuntu.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/environment_install/install-prereqs-ubuntu.sh b/Tools/environment_install/install-prereqs-ubuntu.sh index 9bcaf051b8..a6f226cba1 100755 --- a/Tools/environment_install/install-prereqs-ubuntu.sh +++ b/Tools/environment_install/install-prereqs-ubuntu.sh @@ -250,6 +250,7 @@ grep -Fxq "$exportline2" ~/$SHELL_LOGIN 2>/dev/null || { fi } +if [[ $SKIP_AP_COMPLETION_ENV -ne 1 ]]; then exportline3="source $ARDUPILOT_ROOT/Tools/completion/completion.bash"; grep -Fxq "$exportline3" ~/$SHELL_LOGIN 2>/dev/null || { 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." fi } - +fi exportline4="export PATH=/usr/lib/ccache:\$PATH"; grep -Fxq "$exportline4" ~/$SHELL_LOGIN 2>/dev/null || {