aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e')
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dodoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/paludis/repositories/e/ebuild/utils/dodoc b/paludis/repositories/e/ebuild/utils/dodoc
index 05384aad3..c026e6e10 100755
--- a/paludis/repositories/e/ebuild/utils/dodoc
+++ b/paludis/repositories/e/ebuild/utils/dodoc
@@ -55,14 +55,14 @@ for x in "$@"; do
cd "${x}"
ls * >/dev/null 2>&1 && dodoc -r *
)
+ elif [[ -d "${x}" ]] ; then
+ echo "${0}: ${x} is a directory but we are not recursing" >&2
+ ret=1
elif [[ -s "${x}" ]]; then
install -m0644 "${x}" "${dir}"
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