Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ErickRock committed Sep 5, 2023
1 parent eabe228 commit d168612
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions zsh-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,25 @@

cd ~ || exit

for comando in "apt-get update -q" "apt-get upgrade -yq"
do
echo "Executando comando: $comando..."
...(17 lines omitted)...
if sudo apt-get install -f
then
echo "Pacotes quebrados recuperados com sucesso."
else
echo "Falha ao recuperar pacotes quebrados."
fi
fi
done
# Instalação do Git
echo "Iniciando instalação do Git..."
sudo apt-get install -y git

echo "Instalação do Git e ZSH concluída com êxito!"
# Verifica se o Git já está instalado
if command -v git >/dev/null 2>&1; then
echo "Git já está instalado"
else
echo "Falha ao instalar o Git"
exit 1
fi

# Verifica se o ZSH já está instalado
if command -v zsh >/dev/null 2>&1; then
echo "ZSH já está instalado"
else
# Instalação do ZSH
echo "Iniciando instalação do ZSH..."
sudo apt-get install -y zsh
fi

echo "Instalação do Git e ZSH concluída com sucesso!"

0 comments on commit d168612

Please sign in to comment.