From 58d7df6b34f8a720aeff1365567cf3357c138370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Thu, 8 Sep 2011 19:42:04 +0300 Subject: [PATCH 1/2] Do not load bash completion in non-interactive shells. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ville Skyttä --- tools/udisksctl-bash-completion.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/udisksctl-bash-completion.sh b/tools/udisksctl-bash-completion.sh index b24487e..2af5cab 100644 --- a/tools/udisksctl-bash-completion.sh +++ b/tools/udisksctl-bash-completion.sh @@ -1,6 +1,6 @@ -# Check for bash -[ -z "$BASH_VERSION" ] && return +# Check for interactive bash +[ -z "$BASH_VERSION" -o -z "$PS1" ] && return #################################################################################################### -- 1.7.5.1