aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-03 18:07:06 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-03 18:07:06 +1200
commit9354f642d0216646a0f60bd514b96ca28ba4c19d (patch)
treec41ecffef96e0c966a8ee9197dfd8a8bb6371167 /test
parentAdd dr(6) (diff)
downloaddotfiles-9354f642d0216646a0f60bd514b96ca28ba4c19d.tar.gz
dotfiles-9354f642d0216646a0f60bd514b96ca28ba4c19d.zip
Correct ordering of pipes for test
Diffstat (limited to 'test')
-rwxr-xr-xtest/man8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/man b/test/man
index 299fa60f..4b5a7831 100755
--- a/test/man
+++ b/test/man
@@ -18,11 +18,15 @@ td=$(mktd test-man) || exit
for dir in bin games ; do (
cd -- "$dir"
pa *
-) done | sort | sed 's/\...*$//' > "$td"/bin
+) done |
+sed 's/\...*$//' |
+sort | uniq > "$td"/bin
for dir in man/man[168] ; do (
cd -- "$dir"
pa *.[168]
-) done | sort | sed 's/\.[168]$//' > "$td"/man
+) done |
+sed 's/\.[168]$//' |
+sort | uniq > "$td"/man
# Get lists of noman scripts and nobin manual pages
comm -23 "$td"/bin "$td"/man > "$td"/noman