summaryrefslogtreecommitdiff
path: root/finddeps.in
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2019-05-06 14:10:21 -0400
committerLevente Polyak <anthraxx@archlinux.org>2019-08-09 19:41:53 +0200
commit70f3b8ddb84d8bbfb44d250188667bb7ba0b1db3 (patch)
treed145bb886e106ad60874f719bceb1d013231036a /finddeps.in
parent5fcd90a212d332fa2900ba4b1a1c12e2ab55ea44 (diff)
downloaddevtools-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>
Diffstat (limited to 'finddeps.in')
-rw-r--r--finddeps.in2
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