Avoid complaining about empty directories

Change-Id: If46bffd1c4e6b94f2e476b2d7d506ef337bbf8e1
This commit is contained in:
Kenny Root
2011-07-18 13:11:34 -07:00
parent b8a1c89b3a
commit 7546d613af

View File

@@ -197,7 +197,7 @@ function addcompletions()
dir="sdk/bash_completion"
if [ -d ${dir} ]; then
for f in ${dir}/[a-z]*.bash; do
for f in `/bin/ls ${dir}/[a-z]*.bash 2> /dev/null`; do
echo "including $f"
. $f
done