From 84b789f760e91bcbcf035cca5d40c40032ad87dd Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 27 Sep 2011 09:48:13 +0200 Subject: finddeps: Use read builtin to iterate over packages Using parameter substitution might result in unpredictable behaviour when directories contain whitespaces here. The read shell builtin is the proper way to read single lines. Signed-off-by: Lukas Fleischer --- finddeps.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/finddeps.in b/finddeps.in index ec8cde4..3f4515b 100644 --- a/finddeps.in +++ b/finddeps.in @@ -14,7 +14,7 @@ if [[ -z $match ]]; then exit 0 fi -for d in "$(find . -type d)"; do +find . -type d | while read d; do if [[ -f "$d/PKGBUILD" ]]; then unset pkgname depends makedepends . "$d/PKGBUILD" -- cgit v1.2.3-24-g4f1b