Fix typo;Better detect logic

This commit is contained in:
clsty
2024-02-27 08:19:33 +08:00
parent 537ee4b8aa
commit fa748a9464
2 changed files with 8 additions and 8 deletions
+5 -5
View File
@@ -128,13 +128,13 @@ else ask_bibata=true
fi
if $ask_bibata;then showfun install-bibata;v install-bibata;fi
if $(test -d /usr/local/bin/LaTex); then
echo -e "\e[33m[$0]: Program \"MicroTex\" already exists, no need to install.\e[0m"
if command -v LaTeX >/dev/null 2>&1;then
echo -e "\e[33m[$0]: Program \"MicroTeX\" already exists, no need to install.\e[0m"
echo -e "\e[34mYou can reinstall it in order to update to the latest version anyway.\e[0m"
ask_MicroTex=$ask
else ask_MicroTex=true
ask_MicroTeX=$ask
else ask_MicroTeX=true
fi
if $ask_MicroTex;then showfun install-MicroTex;v install-MicroTex;fi
if $ask_MicroTeX;then showfun install-MicroTeX;v install-MicroTeX;fi
#####################################################################################
printf "\e[36m[$0]: 3. Copying\e[97m\n"
+3 -3
View File
@@ -87,9 +87,9 @@ install-bibata (){
x cd $base
}
install-MicroTex (){
x mkdir -p $base/cache/MicroTex
x cd $base/cache/MicroTex
install-MicroTeX (){
x mkdir -p $base/cache/MicroTeX
x cd $base/cache/MicroTeX
try git init -b master
try git remote add origin https://github.com/NanoMichael/MicroTeX.git
x git pull origin master && git submodule update --init --recursive