On 11/29/2014 11:26 AM, Michał Górny wrote: > Check whether a particular bashrc path is not a directory before trying > to source it. Avoids unnecessary 'is a directory' errors. > --- > bin/ebuild.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/bin/ebuild.sh b/bin/ebuild.sh > index 658884a..0de51f7 100755 > --- a/bin/ebuild.sh > +++ b/bin/ebuild.sh > @@ -421,7 +421,7 @@ __try_source() { > qa=false > shift > fi > - if [[ -r "$1" ]]; then > + if [[ -r $1 && -f $1 ]]; then > local debug_on=false > if [[ "$PORTAGE_DEBUG" == "1" ]] && [[ "${-/x/}" == "$-" ]]; > then > debug_on=true >
LGTM. -- Thanks, Zac