diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-05-05 18:41:09 -0400 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-07-14 06:58:26 +0200 |
commit | 196cdd7ae6626e8c66336b6121c9024b70acea9c (patch) | |
tree | 0cb8d448be851f21f8a197231f63e6d12240d3f8 /lddd.in | |
parent | c440e6f1c531688668ae25924f85cc45980f8295 (diff) | |
download | devtools32-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 'lddd.in')
-rw-r--r-- | lddd.in | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -40,9 +40,9 @@ for tree in $PATH $libdirs $extras; do done grep '^/' "$TEMPDIR/raw.txt" | sed -e 's/://g' >> "$TEMPDIR/affected-files.txt" # invoke pacman -for i in $(cat $TEMPDIR/affected-files.txt); do +while read -r i; do pacman -Qo "$i" | awk '{print $4,$5}' >> "$TEMPDIR/pacman.txt" -done +done < "$TEMPDIR/affected-files.txt" # clean list sort -u "$TEMPDIR/pacman.txt" >> "$TEMPDIR/possible-rebuilds.txt" |