From 5884918d9bf90cceba6c992f46b0437fbbcdbd1e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 21 Apr 2009 21:55:35 +0200 Subject: pkg: Don't use "if (command) {" constructs --- bin/pkg | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/pkg b/bin/pkg index 0c104a8..ec28da6 100755 --- a/bin/pkg +++ b/bin/pkg @@ -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 )) { -- cgit v1.2.3