Gitlab was updated! v14.5.1

Verified Commit 859c760c authored by Simão Afonso @ Powertools Tech's avatar Simão Afonso @ Powertools Tech
Browse files

Save metainformation on the installation location

Show that on when detecting the installation is already there.
parent c8ae04c5
......@@ -81,8 +81,12 @@ setup_tinytex() { # InstallLocation Force?
# "$tlmgr" --repository "https://texlive.info/tlgpg/" install tlgpg
echo "=> Add symlinks to '$il_bin'"
"$tlmgr" path add
echo "=> Mark virtualtex installation"
echo "VERSION=$VIRTUALTEX_VERSION" >"$il_texlive/virtualtex"
echo "=> Mark virtualatex installation"
echo "VERSION=$VIRTUALTEX_VERSION" >"$il_texlive/virtualatex"
(
echo "VIRTUALATEX_VERSION=$VIRTUALTEX_VERSION"
echo "TEXLIVE_VERSION=$texlive_version"
) >"$il/lib/virtualatex.conf"
# Remove detritus
popd 2>/dev/null
......@@ -123,6 +127,11 @@ install_location="${1:-$install_location}"
if [ -e "$install_location" ]; then
if test -d "$install_location"; then
echo "Existing Location: $install_location" >&2
virtualatex_marker="$install_location/lib/virtualatex.conf"
if test -f "$virtualatex_marker"; then
echo "Existing virtualatex installation" >&2
sed 's@^@| @' <"$virtualatex_marker" >&2
fi
if [ "$overwrite" == "no" ]; then
exit 1
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment