aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories')
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dodoc11
1 files changed, 7 insertions, 4 deletions
diff --git a/paludis/repositories/e/ebuild/utils/dodoc b/paludis/repositories/e/ebuild/utils/dodoc
index c026e6e10..cb4698b3e 100755
--- a/paludis/repositories/e/ebuild/utils/dodoc
+++ b/paludis/repositories/e/ebuild/utils/dodoc
@@ -52,14 +52,17 @@ for x in "$@"; do
if $recurse && [[ -d "${x}" ]] ; then
(
export DOCDESTTREE="${DOCDESTTREE}/${x}"
- cd "${x}"
- ls * >/dev/null 2>&1 && dodoc -r *
- )
+ if ! cd "${x}" ; then
+ false
+ elif ls * >/dev/null 2>&1 ; then
+ dodoc -r *
+ fi
+ ) || ret=2
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}"
+ install -m0644 "${x}" "${dir}" || ret=2
elif [[ ! -e "${x}" ]]; then
echo "${0}: ${x} does not exist" >&2
ret=2