diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-09-27 09:48:13 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-10-13 08:23:35 +0200 |
commit | 84b789f760e91bcbcf035cca5d40c40032ad87dd (patch) | |
tree | afe54d6ed45f1209a2eabea75057c09b61a94f23 /finddeps.in | |
parent | 8edb443c125cb668e6609b5ff696e565b15a6069 (diff) | |
download | devtools32-84b789f760e91bcbcf035cca5d40c40032ad87dd.tar.xz |
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 <archlinux@cryptocrack.de>
Diffstat (limited to 'finddeps.in')
-rw-r--r-- | finddeps.in | 2 |
1 files changed, 1 insertions, 1 deletions
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" |