Commit 2d3ac058 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

ensure bash_completion entry-scripts are readable

parent 9dd72306
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -11,10 +11,12 @@ for _prefix in $PREFIX; do
	else
		continue
	fi
	if [ -r "$_bash_completion" ]; then
		break
	fi
done
IFS="$_ofs"
if [ -n "$_bash_completion" ]; then
if [ -n "$_bash_completion" ] && [ -r "$_bash_completion" ]; then
	. "$_bash_completion"
else
	# no single start point for bash_completions; attempt to source any