Update install.sh script to check for fontconfig dependency
This commit is contained in:
10
install.sh
10
install.sh
@@ -20,13 +20,13 @@ do
|
||||
esac
|
||||
done
|
||||
|
||||
if command -v zsh &> /dev/null && command -v git &> /dev/null && command -v wget &> /dev/null; then
|
||||
echo -e "ZSH and Git are already installed\n"
|
||||
if command -v zsh &> /dev/null && command -v git &> /dev/null && command -v wget &> /dev/null && command -v fc-cache &> /dev/null; then
|
||||
echo -e "ZSH, Git, wget, and fontconfig are already installed\n"
|
||||
else
|
||||
if sudo apt install -y zsh git wget autoconf || sudo pacman -S zsh git wget || sudo dnf install -y zsh git wget || sudo yum install -y zsh git wget || sudo brew install git zsh wget || pkg install git zsh wget ; then
|
||||
echo -e "zsh wget and git Installed\n"
|
||||
if sudo apt install -y zsh git wget fontconfig || sudo pacman -S zsh git wget fontconfig || sudo dnf install -y zsh git wget fontconfig || sudo yum install -y zsh git wget fontconfig || sudo brew install git zsh wget fontconfig || pkg install git zsh wget fontconfig ; then
|
||||
echo -e "zsh, wget, git, and fontconfig Installed\n"
|
||||
else
|
||||
echo -e "Please install the following packages first, then try again: zsh git wget \n" && exit
|
||||
echo -e "Please install the following packages first, then try again: zsh, git, wget, fontconfig \n" && exit
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user