From 2a004034496dccc503c15dcc82691bf0448cc559 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Thu, 4 Apr 2024 11:35:24 +0200 Subject: better suggestions for tlobsd --- makefile | 1 + tlobsd | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/makefile b/makefile index e275888..530e42a 100644 --- a/makefile +++ b/makefile @@ -25,6 +25,7 @@ fetch: mkdir ${TMPDIR}/bin \ && tar xf ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar \ -C ${TMPDIR}/bin + @echo "" @echo "Looks good." @echo "Now do this to install TeX Live with custom binaries:" @echo " cd /path/to/install-tl" diff --git a/tlobsd b/tlobsd index 3e8d7ca..b560224 100644 --- a/tlobsd +++ b/tlobsd @@ -4,8 +4,12 @@ cmd=$@ +# no $cmd +if [[ -z ${cmd} ]];then + echo "$(basename $0): unknown action" + exit 1 # tlmgr -if [[ $1 == "tlmgr" ]];then +elif [[ $1 == "tlmgr" ]];then $cmd [[ $? -eq 0 ]] && tlobsd-mksymlinks 1> /dev/null # symlinks @@ -13,8 +17,6 @@ elif [[ $1 == "mksymlinks" ]];then tlobsd-mksymlinks $2 # something that is unknown to tlobsd else - echo "$1 is not known to $(basename $0). You should use:" - echo "--> ${cmd}" - echo "instead of:" - echo "--> $(basename $0) ${cmd}" + echo "$1 is not known to $(basename $0). Try: ${cmd} --help if you need it." + exit 1 fi -- cgit v1.2.3