Skip to content

Commit

Permalink
Tools: allow to skip completion installation
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr authored and peterbarker committed Sep 5, 2020
1 parent 6ebc762 commit 31338f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tools/environment_install/install-prereqs-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 || {
Expand Down

0 comments on commit 31338f9

Please sign in to comment.