[tex] Fix pathing with git-installed packages

This commit is contained in:
Correl Roush 2023-05-02 12:09:06 -04:00
parent c814216b17
commit 485bfb0a78

View file

@ -66,10 +66,11 @@ function _tex_git {
local repo=$2 local repo=$2
local repo_path=$3 local repo_path=$3
local clone_path="$(kpsewhich -var-value TEXMFHOME)/git/latex/${pkg}" 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 if [[ ! -d "${install_path}" ]]; then
_git $2 "$(kpsewhich -var-value TEXMFHOME)/git/latex/${pkg}" _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 else
echo "[tex] $pkg is already installed, skipping." echo "[tex] $pkg is already installed, skipping."
fi fi