aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild/utils/dohtml
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/ebuild/utils/dohtml')
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dohtml19
1 files changed, 10 insertions, 9 deletions
diff --git a/paludis/repositories/e/ebuild/utils/dohtml b/paludis/repositories/e/ebuild/utils/dohtml
index 3395a83d5..e8233f7b4 100755
--- a/paludis/repositories/e/ebuild/utils/dohtml
+++ b/paludis/repositories/e/ebuild/utils/dohtml
@@ -106,15 +106,16 @@ install_file() {
echo "install -m0644 ${path} ${dir}"
install -m0644 "${path}" "${dir}/${bn}"
fi
- elif [[ $recurse == 1 && -d ${path} ]] &&
- ! has "${bn}" ${disallowed_dirs}; then
- for f in ${path}/*; do
- [[ -e ${f} ]] || continue
- pfx=${bn}
- [[ -n ${prefix} ]] && pfx="${prefix}/${pfx}"
- install_file "$(basename "${f}")" "${dn}" "${pfx}"
- (( ret |= $? ))
- done
+ elif [[ $recurse == 1 && -d ${path} ]]; then
+ if ! has "${bn}" ${disallowed_dirs}; then
+ for f in ${path}/*; do
+ [[ -e ${f} ]] || continue
+ pfx=${bn}
+ [[ -n ${prefix} ]] && pfx="${prefix}/${pfx}"
+ install_file "$(basename "${f}")" "${dn}" "${pfx}"
+ (( ret |= $? ))
+ done
+ fi
else
if [[ -d "${path}" ]] ; then
echo "!!! Directory '${path}' encountered, but -r not specified"