gistfile1.txt
· 370 B · Text
Raw
#!/bin/bash
set -e
sudo pacman -Syu --noconfirm
if ! command -v yay &> /dev/null; then
sudo pacman -S --needed git base-devel --noconfirm
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si --noconfirm
cd ..
rm -rf yay
fi
yay -S --noconfirm anydesk
sudo systemctl enable --now anydesk.service
echo "AnyDesk instalado com sucesso!"
| 1 | #!/bin/bash |
| 2 | set -e |
| 3 | |
| 4 | sudo pacman -Syu --noconfirm |
| 5 | |
| 6 | if ! command -v yay &> /dev/null; then |
| 7 | sudo pacman -S --needed git base-devel --noconfirm |
| 8 | git clone https://aur.archlinux.org/yay.git |
| 9 | cd yay |
| 10 | makepkg -si --noconfirm |
| 11 | cd .. |
| 12 | rm -rf yay |
| 13 | fi |
| 14 | |
| 15 | yay -S --noconfirm anydesk |
| 16 | |
| 17 | sudo systemctl enable --now anydesk.service |
| 18 | |
| 19 | echo "AnyDesk instalado com sucesso!" |