From e6b9eaaef5265d1fd8302cf05b296a35fdd987bf Mon Sep 17 00:00:00 2001 From: WeirdTreeThing Date: Tue, 13 Feb 2024 21:36:17 -0500 Subject: Redirect package manager output to a log file --- .gitignore | 1 + install.sh | 18 +++++++++--------- 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 .. ;; -- cgit 1.4.1-2-gfad0