Use the basename

This commit is contained in:
Anthony Rose 2025-03-03 11:35:08 +00:00
parent 4ebb93dcac
commit 9156335945

View file

@ -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>