update dnf add repo syntax

This commit is contained in:
askiiart 2024-12-06 22:21:21 -06:00
parent 47bb90de9c
commit f2823f2c78
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
7 changed files with 22 additions and 7 deletions

View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
if [ $(whoami) == "root" ]; then
echo "Run as a normal user, not root"
exit 1
fi
# only fedora is up-to-date
command_exists() { type "$1" &>/dev/null; }
if command_exists "dnf"; then
sudo dnf copr enable swayfx/swayfx
sudo rm /etc/dnf/protected.d/fedora-sway.conf
sudo dnf install swayfx --allowerasing # conflicts with sway, so this will remove sway
fi