From 70f3b8ddb84d8bbfb44d250188667bb7ba0b1db3 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 6 May 2019 14:10:21 -0400 Subject: 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 Signed-off-by: Levente Polyak --- finddeps.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'finddeps.in') 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 -- cgit v1.2.3-70-g09d2