summaryrefslogtreecommitdiff
path: root/finddeps.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-05-05 18:41:09 -0400
committerErich Eckner <git@eckner.net>2017-07-14 06:58:26 +0200
commit196cdd7ae6626e8c66336b6121c9024b70acea9c (patch)
tree0cb8d448be851f21f8a197231f63e6d12240d3f8 /finddeps.in
parentc440e6f1c531688668ae25924f85cc45980f8295 (diff)
downloaddevtools32-196cdd7ae6626e8c66336b6121c9024b70acea9c.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.in2
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"