diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-21 21:55:35 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-21 21:55:35 +0200 |
commit | 5884918d9bf90cceba6c992f46b0437fbbcdbd1e (patch) | |
tree | 98364432996cdb282a2cbbbd6b3df6125d2fc6f5 | |
parent | e51322db583643926c2e536f94183eb39bdd1640 (diff) |
pkg: Don't use "if (command) {" constructs
-rwxr-xr-x | bin/pkg | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -543,24 +543,24 @@ function populate_collected { for man in man/*/*(N); { section=${man:h:t} manpage=${man:t} - if (podchecker man/$section/$manpage &> /dev/null) { + if podchecker man/$section/$manpage &> /dev/null; then pod2man -u -s $section -c "$1 package" -r $HOME man/$section/$manpage > $PDIR/.collected/man/man$section/$manpage.$section say -n "+" (( mans++ )) - } else { + else say -n "." (( mano++ )) - } + fi } for file in bin/*(N); { - if (podchecker $file &> /dev/null) { + if podchecker $file &> /dev/null; then pod2man -u $file > $PDIR/.collected/man/man1/${file:t}.1 say -n "+" (( bins++ )) - } else { + else say -n "." (( bino++ )) - } + fi } clear_line if (( bins + mans > 0 )) { |