Commit 31b89989 authored by Emeric Verschuur's avatar Emeric Verschuur

[wrapper] Improve bash completion mode detection when the local...

[wrapper] Improve bash completion mode detection when the local ci-toolbox/ci-toolbox.sh file is used (useful during development process)
parent 83b2ca0f
......@@ -70,10 +70,13 @@ if [ -n "$CITBX_BASHCOMP" ]; then
print $2
}
NR > 50 {
print 0
exit
}' $CITBX_CI_TOOLBOX_PATH 2> /dev/null || true)
# skip bash completion for CITBX_VERSION < 3.x.x
test "0${CITBX_VERSION%%.*}" -ge 3 || exit
test ${CITBX_VERSION%%.*} -ge 3 || \
grep -m 1 CITBX_BASHCOMP -q $CITBX_CI_TOOLBOX_PATH \
|| exit
fi
export CITBX_TOOL_NAME=ci-toolbox
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment