diff --git a/contrib/man/md/md2man-all.sh b/contrib/man/md/md2man-all.sh index f33557934c..def876f47a 100755 --- a/contrib/man/md/md2man-all.sh +++ b/contrib/man/md/md2man-all.sh @@ -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