1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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

View file

@ -13,7 +13,7 @@ for FILE in *.md; do
base="$(basename "$FILE")" base="$(basename "$FILE")"
name="${base%.md}" name="${base%.md}"
num="${name##*.}" 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) # skip files that aren't of the format xxxx.N.md (like README.md)
continue continue
fi fi