diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2019-05-06 20:10:21 +0200 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2019-08-09 19:41:53 +0200 |
commit | 70f3b8ddb84d8bbfb44d250188667bb7ba0b1db3 (patch) | |
tree | d145bb886e106ad60874f719bceb1d013231036a | |
parent | 5fcd90a212d332fa2900ba4b1a1c12e2ab55ea44 (diff) | |
download | devtools-70f3b8ddb84d8bbfb44d250188667bb7ba0b1db3.tar.gz devtools-70f3b8ddb84d8bbfb44d250188667bb7ba0b1db3.tar.xz |
finddeps: suppress error messages for unreadable directories
If the find command cannot descend into a directory in order to search
for a PKGBUILD, it is likely a "$pkgdir" which makepkg sets as
unreadable. As far as finddeps is concerned, this error message is not
needed.
Also convert to using null-delimited paths on general principle to
prevent read from splitting on odd paths.
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
-rw-r--r-- | finddeps.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/finddeps.in b/finddeps.in index 2a085e5..7237d67 100644 --- a/finddeps.in +++ b/finddeps.in @@ -17,7 +17,7 @@ if [[ -z $match ]]; then exit 1 fi -find . -type d | while read -r d; do +find . -type d -print0 2>/dev/null| while read -r -d '' d; do if [[ -f "$d/PKGBUILD" ]]; then pkgname=() depends=() makedepends=() optdepends=() # shellcheck source=PKGBUILD.proto |