about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWeirdTreeThing <bradyn127@protonmail.com>2024-02-13 21:36:17 -0500
committerWeirdTreeThing <bradyn127@protonmail.com>2024-02-13 21:36:17 -0500
commite6b9eaaef5265d1fd8302cf05b296a35fdd987bf (patch)
tree3d3b18ac523c9aa54cfff133e072e381e803edf5
parent674ff60f9579fa6a962592cdd3dff43c4994f512 (diff)
Redirect package manager output to a log file
-rw-r--r--.gitignore1
-rwxr-xr-xinstall.sh18
2 files changed, 10 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
index af215ae..540682e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 cros.conf
+pkg.log
diff --git a/install.sh b/install.sh
index 5148ac8..2087abd 100755
--- a/install.sh
+++ b/install.sh
@@ -30,34 +30,34 @@ if ! [ -f /usr/bin/keyd ]; then
 	echo "Installing keyd dependencies"
 	case $distro in
 		deb)
-			$privesc apt install -y build-essential git
+			$privesc apt install -y build-essential git &>> pkg.log
 			;;
 		arch)
-			$privesc pacman -S --noconfirm base-devel git
+			$privesc pacman -S --noconfirm base-devel git &>> pkg.log
 			;;
 		fedora)
-			$privesc dnf groupinstall -y "Development Tools" "Development Libraries"
+			$privesc dnf groupinstall -y "Development Tools" "Development Libraries" &>> pkg.log
 			;;
 	esac
 
 	echo "Installing keyd"
 	case $distro in
 		suse)
-			$privesc zypper --non-interactive install keyd
+			$privesc zypper --non-interactive install keyd &>> pkg.log
 			;;
 		arch)
-			git clone https://aur.archlinux.org/keyd.git
+			git clone https://aur.archlinux.org/keyd.git &>> pkg.log
 			cd keyd
-			makepkg -si --noconfirm
+			makepkg -si --noconfirm &>> pkg.log
 			cd ..
 			;;
 		alpine)
-			$privesc apk add --no-interactive keyd
+			$privesc apk add --no-interactive keyd &>> pkg.log
 			;;
 		*)
-			git clone https://github.com/rvaiya/keyd
+			git clone https://github.com/rvaiya/keyd &>> pkg.log
 			cd keyd
-			make
+			make &>> pkg.log
 			$privesc make install
 			cd ..
 			;;