mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-22 03:00:05 +00:00
[tex] Fix pathing with git-installed packages
This commit is contained in:
parent
c814216b17
commit
485bfb0a78
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue