forked from Shinonome/dots-hyprland
Fix typo;Better detect logic
This commit is contained in:
+5
-5
@@ -128,13 +128,13 @@ else ask_bibata=true
|
|||||||
fi
|
fi
|
||||||
if $ask_bibata;then showfun install-bibata;v install-bibata;fi
|
if $ask_bibata;then showfun install-bibata;v install-bibata;fi
|
||||||
|
|
||||||
if $(test -d /usr/local/bin/LaTex); then
|
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[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"
|
echo -e "\e[34mYou can reinstall it in order to update to the latest version anyway.\e[0m"
|
||||||
ask_MicroTex=$ask
|
ask_MicroTeX=$ask
|
||||||
else ask_MicroTex=true
|
else ask_MicroTeX=true
|
||||||
fi
|
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"
|
printf "\e[36m[$0]: 3. Copying\e[97m\n"
|
||||||
|
|||||||
@@ -87,9 +87,9 @@ install-bibata (){
|
|||||||
x cd $base
|
x cd $base
|
||||||
}
|
}
|
||||||
|
|
||||||
install-MicroTex (){
|
install-MicroTeX (){
|
||||||
x mkdir -p $base/cache/MicroTex
|
x mkdir -p $base/cache/MicroTeX
|
||||||
x cd $base/cache/MicroTex
|
x cd $base/cache/MicroTeX
|
||||||
try git init -b master
|
try git init -b master
|
||||||
try git remote add origin https://github.com/NanoMichael/MicroTeX.git
|
try git remote add origin https://github.com/NanoMichael/MicroTeX.git
|
||||||
x git pull origin master && git submodule update --init --recursive
|
x git pull origin master && git submodule update --init --recursive
|
||||||
|
|||||||
Reference in New Issue
Block a user