diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-03-28 19:14:54 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2017-05-05 18:24:19 -0400 |
commit | 0beccef4ac405fdefdafba5b9ac6e7962b1610d2 (patch) | |
tree | 38f0e022fac539a9a525f70dcc52f2e920059519 /finddeps.in | |
parent | bab91f854240b950f8ab9142e949391406e6a43e (diff) | |
download | devtools32-0beccef4ac405fdefdafba5b9ac6e7962b1610d2.tar.xz |
Make slightly more involved changes to make shellcheck happy.
- Use `read -r` instead of other forms of read or looping
- Use arrays instead of strings with whitespaces.
- In one instance, use ${var%%.*} instead of $(echo $var|cut -f. -d1)
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 c71f151..80774bb 100644 --- a/finddeps.in +++ b/finddeps.in @@ -17,7 +17,7 @@ if [[ -z $match ]]; then exit 1 fi -find . -type d | while read d; do +find . -type d | while read -r d; do if [[ -f "$d/PKGBUILD" ]]; then pkgname=() depends=() makedepends=() optdepends=() . "$d/PKGBUILD" |