commit f4dba93a8b55eb811450c8ea161065f6e3cc2a73
Author: Scott Kostyshak <[email protected]>
Date: Mon Mar 17 12:50:10 2025 +0100
lyx-tester switches: combine two commands into one
The first was only used for the second, so this avoids a useless
variable.
---
development/lyx-tester/switches | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/development/lyx-tester/switches b/development/lyx-tester/switches
index ffd4eec150..b89042d545 100644
--- a/development/lyx-tester/switches
+++ b/development/lyx-tester/switches
@@ -11,9 +11,7 @@
_polyglossia_dev_d="/home/$(logname)/polyglossia"
# location of TL version
-# TODO: combine these two, since the first is only used for the second.
-_polyglossia_tl_f="$(/opt/texbin/kpsewhich polyglossia.sty)"
-_polyglossia_tl_d="$(dirname "${_polyglossia_tl_f}")"
+_polyglossia_tl_d="$(/opt/texbin/kpsewhich polyglossia.sty | xargs dirname )"
# e.g., "TL25_2025-03-16"
_tl_dirname="$( basename "$( dirname "$( kpsewhich -var-value TEXMFDIST )")")"
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs