summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-21 21:55:35 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-21 21:55:35 +0200
commit5884918d9bf90cceba6c992f46b0437fbbcdbd1e (patch)
tree98364432996cdb282a2cbbbd6b3df6125d2fc6f5
parente51322db583643926c2e536f94183eb39bdd1640 (diff)
pkg: Don't use "if (command) {" constructs
-rwxr-xr-xbin/pkg12
1 files 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 )) {