configs/install-stuff/install-armcord.bash

22 lines
747 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -e
if [ $(whoami) == "root" ]; then
echo "Run as a normal user, not root"
exit 1
fi
command_exists() { type "$1" &>/dev/null; }
if command_exists "apt-get"; then
2023-09-13 10:17:15 -05:00
sudo curl -L https://askiiart.net/repos/debian/dists/bookworm/stable/binary-amd64/askiiart.list -o /etc/apt/sources.list.d/askiiart.list
sudo apt update --allow-insecure-repositories
2023-09-13 10:17:15 -05:00
sudo apt install armcord -y --allow-unauthenticated
elif command_exists "yum"; then
sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo
2023-09-13 10:17:15 -05:00
sudo dnf install ArmCord -y
elif command_exists "pacman"; then
yay -S armcord-bin
else
echo "IDK, check ArmCord's GitHub repo: https://github.com/ArmCord/ArmCord"
fi