Skip to content

Commit 7af2e25

Browse files
authored
Merge pull request #1685 from Taeung/check-md2man
Warning message if 'go-md2man' is not yet installed
2 parents 6e15bc3 + 72f92cf commit 7af2e25

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

man/md2man-all.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
99
pwd
1010
}
1111

12+
if ! ( which go-md2man &>/dev/null ); then
13+
echo "To install man pages, please install 'go-md2man'."
14+
exit 0
15+
fi
16+
1217
for FILE in *.md; do
1318
base="$(basename "$FILE")"
1419
name="${base%.md}"

0 commit comments

Comments
 (0)