pkg install git zsh wget for BSD

This commit is contained in:
JGill
2020-07-23 10:40:33 +09:30
parent a58c89d81f
commit 572e63ac34

View File

@@ -3,10 +3,10 @@
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"
else
if sudo apt install -y zsh git wget || sudo dnf install -y zsh git wget || sudo yum install -y zsh git wget || sudo brew install git zsh wget ; then
echo -e "ZSH and Git Installed\n"
if sudo apt install -y 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"
else
echo -e "Can't install ZSH or Git\n" && exit
echo -e "Please install the following packages first, then try again: zsh git wget \n" && exit
fi
fi