From 620f8f527093f786026c9d875b50630a30ecd3c6 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Wed, 4 Sep 2024 07:32:56 +0200 Subject: tlobsd: do not run mksymlinks unless ls-R has been updated --- tlobsd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tlobsd') diff --git a/tlobsd b/tlobsd index 04187ba..41cfe1e 100644 --- a/tlobsd +++ b/tlobsd @@ -27,8 +27,11 @@ elif [[ $1 == "help" ]];then $cmd # tlmgr elif [[ $1 == "tlmgr" ]];then + tempfile=`mktemp` $cmd - [[ $? -eq 0 ]] && tlobsd-mksymlinks 1> /dev/null + if [[ $? -eq 0 ]] && [[ ${tempfile} -ot $(kpsewhich ls-R) ]];then + tlobsd-mksymlinks 1> /dev/null + fi # symlinks elif [[ $1 == "mksymlinks" ]];then tlobsd-mksymlinks $2 -- cgit v1.2.3