From 485bfb0a78f55faed839caa2f4d26b79a26b4828 Mon Sep 17 00:00:00 2001 From: Correl Date: Tue, 2 May 2023 12:09:06 -0400 Subject: [PATCH] [tex] Fix pathing with git-installed packages --- recipes/tex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/tex b/recipes/tex index 5634d02..9e89d1a 100644 --- a/recipes/tex +++ b/recipes/tex @@ -66,10 +66,11 @@ function _tex_git { local repo=$2 local repo_path=$3 local clone_path="$(kpsewhich -var-value TEXMFHOME)/git/latex/${pkg}" - local install_path="$(kpsewhich -var-value TEXMFHOME)/tex/latex/${pkg}" + local install_parent="$(kpsewhich -var-value TEXMFHOME)/tex/latex" + local install_path="${install_parent}/${pkg}" if [[ ! -d "${install_path}" ]]; then _git $2 "$(kpsewhich -var-value TEXMFHOME)/git/latex/${pkg}" - _run "[tex] Install $pkg" mkdir -p "${install_path}" && ln -s "${clone_path}/${repo_path}" "${install_path}" + _run "[tex] Install $pkg" mkdir -p "${install_parent}" && ln -s "${clone_path}/${repo_path}" "${install_path}" else echo "[tex] $pkg is already installed, skipping." fi