about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWeirdTreeThing <bradyn127@protonmail.com>2024-11-08 16:26:31 -0500
committerGitHub <noreply@github.com>2024-11-08 16:26:31 -0500
commit9b425836015b6f367edcb9547eb1c687c69e9994 (patch)
treec32be39eaebee87fe3141b2ce20c460246e0537b
parent0dcdc343618e786d39e02ec5297c146075c3b162 (diff)
parenta3eee82a30dcc79639400ed0bbbdf2964ecdb01b (diff)
Merge pull request #39 from Nacroni/patch-1
use "dnf4" instead of generic "dnf"
-rwxr-xr-xinstall.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/install.sh b/install.sh
index bbf19de..61c61da 100755
--- a/install.sh
+++ b/install.sh
@@ -16,7 +16,7 @@ elif [ -f /usr/bin/zypper ]; then
 	distro="suse"
 elif [ -f /usr/bin/pacman ]; then
 	distro="arch"
-elif [ -f /usr/bin/dnf ]; then
+elif [ -f /usr/bin/dnf4 ]; then
 	distro="fedora"
 elif [ -f /sbin/apk ]; then
 	distro="alpine"
@@ -35,7 +35,7 @@ fi
 echo "Installing, this may take some time...."
 
 # Fedora with the terra repo (Ultramarine) has keyd packaged
-[ "$distro" = "fedora" ] && dnf info keyd -y&>> pkg.log && FEDORA_HAS_KEYD=1
+[ "$distro" = "fedora" ] && dnf4 info keyd -y&>> pkg.log && FEDORA_HAS_KEYD=1
 
 if ! [ -f /usr/bin/keyd ]; then
     # if keyd isnt installed
@@ -45,7 +45,7 @@ if ! [ -f /usr/bin/keyd ]; then
 			$privesc apt install -y build-essential git &>> pkg.log
 			;;
 		fedora)
-			[ ! "$FEDORA_HAS_KEYD" = "1" ] && $privesc dnf groupinstall -y "Development Tools" "Development Libraries" &>> pkg.log
+			[ ! "$FEDORA_HAS_KEYD" = "1" ] && $privesc dnf4 groupinstall -y "Development Tools" "Development Libraries" &>> pkg.log
 			;;
 	esac
 
@@ -62,7 +62,7 @@ if ! [ -f /usr/bin/keyd ]; then
 			;;
 		*)
 			if [ "$FEDORA_HAS_KEYD" = "1" ]; then
-				$privesc dnf install -y keyd &>> pkg.log
+				$privesc dnf4 install -y keyd &>> pkg.log
 			else
 				git clone https://github.com/rvaiya/keyd &>> pkg.log
 				cd keyd