Brown paper bag fix for the previous commit.

This commit is contained in:
Ville Skyttä 2013-01-25 00:19:23 +02:00
parent fea1c178b4
commit c4cc3eb63b

View File

@ -1920,7 +1920,7 @@ _completion_loader()
{
local compfile=./completions
[[ $BASH_SOURCE == */* ]] && compfile="${BASH_SOURCE%/*}/completions"
compfile+="${1##*/}"
compfile+="/${1##*/}"
# Avoid trying to source dirs; https://bugzilla.redhat.com/903540
[[ -f "$compfile" ]] && . "$compfile" &>/dev/null && return 124