update dnf add repo syntax
This commit is contained in:
parent
47bb90de9c
commit
f2823f2c78
7 changed files with 22 additions and 7 deletions
15
install-stuff/install-swayfx.bash
Executable file
15
install-stuff/install-swayfx.bash
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue