Fix minor bug in contrib/man/md/md2man-all.sh causing the creation of contrib/man/manREADME

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
This commit is contained in:
Tianon Gravi 2014-06-14 01:44:55 -06:00
parent c40602b254
commit d561fe6d2d
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ for FILE in *.md; do
base="$(basename "$FILE")"
name="${base%.md}"
num="${name##*.}"
if [ -z "$num" -o "$base" = "$num" ]; then
if [ -z "$num" -o "$name" = "$num" ]; then
# skip files that aren't of the format xxxx.N.md (like README.md)
continue
fi