aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dodoc5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/repositories/e/ebuild/utils/dodoc b/paludis/repositories/e/ebuild/utils/dodoc
index 35d14722e..05384aad3 100755
--- a/paludis/repositories/e/ebuild/utils/dodoc
+++ b/paludis/repositories/e/ebuild/utils/dodoc
@@ -2,7 +2,7 @@
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
-# Copyright (c) 2007, 2009 Ciaran McCreesh
+# Copyright (c) 2007, 2009, 2011 Ciaran McCreesh
#
# Based in part upon dodoc from Portage, which is Copyright 1995-2005
# Gentoo Foundation and distributed under the terms of the GNU General
@@ -60,6 +60,9 @@ for x in "$@"; do
elif [[ ! -e "${x}" ]]; then
echo "${0}: ${x} does not exist" >&2
ret=2
+ elif [[ -d "${x}" ]] ; then
+ echo "${0}: ${x} is a directory but we are not recursing" >&2
+ ret=1
fi
done