Skip to content

Commit 72f92cf

Browse files
committed
Warning message if 'go-md2man' is not yet installed
If 'go-md2man' is not installed, an error can occur when running md2man-all.sh like below: $ ./man/md2man-all.sh -q ./man/md2man-all.sh: line 21: go-md2man: command not found So fix it. Signed-off-by: Taeung Song <[email protected]>
1 parent 9a270e2 commit 72f92cf

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)