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>
This commit is contained in:
parent
5fcd90a212
commit
70f3b8ddb8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue