diff options
author | 2011-02-25 18:13:00 +0000 | |
---|---|---|
committer | 2011-02-26 14:11:27 +0000 | |
commit | e0ef0b7678fd7c9fa970313b53e0d99d8732d133 (patch) | |
tree | 4ac4a5e137c680e1098bac82b04bc9d2597137d8 | |
parent | 6319f1e7cac9aac93c066f0b1318d71489987cf8 (diff) | |
download | paludis-e0ef0b7678fd7c9fa970313b53e0d99d8732d133.tar.gz paludis-e0ef0b7678fd7c9fa970313b53e0d99d8732d133.tar.xz |
Error if dodoc hits a directory and not -r
-rwxr-xr-x | paludis/repositories/e/ebuild/utils/dodoc | 5 |
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 |