Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from kamuridesu/fix
Browse files Browse the repository at this point in the history
Fix
  • Loading branch information
kamuridesu authored Dec 7, 2021
2 parents 5ef2f5b + 09dc078 commit 7e2bd8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ if [ $(echo $PREFIX | grep -o "com.termux") ]; then # Termux (Android)
pkg install curl nodejs ffmpeg libwebp git -y 2>&1 > /dev/null # Instalando pacotes necessários para o funcionamento do script (NodeJS, FFmpeg, LibWebP, Git) e silenciando os outputs.
npm install -g npm@6 # we need to downgrade to npm 6 because https://github.com/npm/cli/issues/3577
else
apt update 2>&1 > /dev/null && curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -\nsudo apt-get install curl -y nodejs && apt install ffmpeg git webpx || pacman -Syu 2>&1 >/dev/null && pacman -S nodejs ffmpeg libwebp git curl
apt update 2>&1 > /dev/null && curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash && sudo apt-get install curl nodejs && apt install ffmpeg git webp -y || pacman -Syu 2>&1 >/dev/null && pacman -S nodejs ffmpeg libwebp git curl
fi
# checks if the actual folder is a git repo
if [ $(echo $PWD | grep -o "\.git") ]; then
curl https://raw.githubusercontent.com/kamuridesu/WhatsappBot/main/install.sh | bash
if [ $(git rev-parse --is-inside-work-tree) ]; then
echo "Already a git repo"
else
echo "\033[0;32mClonando bot..."
git clone https://github.com/kamuridesu/WhatsappBot.git 2>&1 > /dev/null # Clonando o bot.
Expand Down

0 comments on commit 7e2bd8c

Please sign in to comment.