Use the basename
This commit is contained in:
parent
4ebb93dcac
commit
9156335945
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
command -v cmark >/dev/null || (echo "cmark: command not found" >&2 && exit 1)
|
command -v cmark >/dev/null || (echo "cmark: command not found" >&2 && exit 1)
|
||||||
test -n "$2" || (echo "Usage: $0 \"Document title\" filename1 [filename2...]" >&2 && exit 1)
|
test -n "$2" || (echo "Usage: $(basename "$0") \"Document title\" filename1 [filename2...]" >&2 && exit 1)
|
||||||
cat << __EOF__
|
cat << __EOF__
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
Loading…
Reference in a new issue