star-ty

Generate content for online publication
git clone git://git.meso-star.fr/star-ty.git
Log | Files | Refs | README | LICENSE

commit ae8dc2439f790a6181a69543349c890103b6ef4d
parent 84bb74d79f0bf215ebb7bb3042e7268fdf754893
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 24 Sep 2025 12:46:12 +0200

Standardize the error message between sty-hooks and sty-list

Use the same error message when commands are not invoked from a star-ty
directory.

Diffstat:
Msrc/sty-hooks | 3++-
Msrc/sty-list | 5+++--
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/sty-hooks b/src/sty-hooks @@ -21,7 +21,8 @@ set -e if [ ! -e "menu.tsv" ]; then >&2 printf \ - 'not a star-typesetting directory (the menu.tsv file is missing)\n' + '%s: not a star-typesetting directory (the menu.tsv file is missing)\n' \ + "${0##*/}" exit 1 fi diff --git a/src/sty-list b/src/sty-list @@ -119,8 +119,9 @@ if [ "$#" -lt 1 ]; then fi if [ ! -e menu.tsv ]; then - >&2 printf '%s: this is not a star-typesetting root directory: ' "${0##*/}" - >&2 printf 'the menu.tsv file is missing.\n' + >&2 printf + '%s: not a star-typesetting directory (the menu.tsv file is missing)\n' \ + "${0##*/}" exit 1 fi