From 320b1f80f79817d55bebbe0bba98a97bd1be01cf Mon Sep 17 00:00:00 2001 From: askiiart Date: Wed, 13 Sep 2023 10:17:15 -0500 Subject: [PATCH] Fix my repo stuff --- install-stuff/install-armcord.bash | 5 +++-- install-stuff/install-yt-music.bash | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100755 install-stuff/install-yt-music.bash diff --git a/install-stuff/install-armcord.bash b/install-stuff/install-armcord.bash index 531698d..a557403 100755 --- a/install-stuff/install-armcord.bash +++ b/install-stuff/install-armcord.bash @@ -8,11 +8,12 @@ fi command_exists() { type "$1" &>/dev/null; } if command_exists "apt-get"; then - sudo curl -L https://askiiart.net/repos/debian/bookworm/amd64/askiiart.list -C - -o /etc/apt/sources.list.d/askiiart.list + 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 - sudo apt install armcord -y + 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 + sudo dnf install ArmCord -y elif command_exists "pacman"; then yay -S armcord-bin else diff --git a/install-stuff/install-yt-music.bash b/install-stuff/install-yt-music.bash new file mode 100755 index 0000000..ac0f824 --- /dev/null +++ b/install-stuff/install-yt-music.bash @@ -0,0 +1,19 @@ +#!/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 + 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 + sudo apt install youtube-music -y --allow-unauthenticated +elif command_exists "yum"; then + sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo + sudo dnf install youtube-music -y +else + echo "IDK, check the repo: https://github.com/th-ch/youtube-music" +fi