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 --- tlobsd | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tlobsd') 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