2014-11-17 13:50:19 +01:00
|
|
|
---
|
2016-12-14 12:49:24 +01:00
|
|
|
bash_completion.sh.in | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
2014-11-17 13:50:19 +01:00
|
|
|
|
|
|
|
--- bash_completion.sh.in
|
2016-12-14 12:49:24 +01:00
|
|
|
+++ bash_completion.sh.in 2016-12-14 08:58:03.572501304 +0000
|
|
|
|
@@ -1,5 +1,5 @@
|
2014-11-17 13:50:19 +01:00
|
|
|
# Check for interactive bash and that we haven't already been sourced.
|
2016-12-14 12:49:24 +01:00
|
|
|
-if [ -n "${BASH_VERSION-}" -a -n "${PS1-}" -a -z "${BASH_COMPLETION_COMPAT_DIR-}" ]; then
|
|
|
|
+if [[ -n "${BASH_VERSION-}" && $- =~ i && -z "${BASH_COMPLETION_COMPAT_DIR-}" ]]; then
|
2014-11-17 13:50:19 +01:00
|
|
|
|
2016-12-14 12:49:24 +01:00
|
|
|
# Check for recent enough version of bash.
|
|
|
|
if [ ${BASH_VERSINFO[0]} -gt 4 ] || \
|