summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--envsetup.sh10
1 files changed, 3 insertions, 7 deletions
diff --git a/envsetup.sh b/envsetup.sh
index d52d812..2b937f7 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -256,22 +256,18 @@ function settitle()
function addcompletions()
{
- if [ "${BASH_VERSINFO[0]}" -lt 4 ] ; then
- return
- fi
-
- local T dir f
-
# Keep us from trying to run in something that isn't bash.
if [ -z "${BASH_VERSION}" ]; then
return
fi
# Keep us from trying to run in bash that's too old.
- if [ ${BASH_VERSINFO[0]} -lt 3 ]; then
+ if [ "${BASH_VERSINFO[0]}" -lt 4 ] ; then
return
fi
+ local T dir f
+
dirs="sdk/bash_completion vendor/cm/bash_completion"
for dir in $dirs; do
if [ -d ${dir} ]; then