From b39e579c5130b299a5deb1d177c144436dfbde92 Mon Sep 17 00:00:00 2001 From: Keule0010 Date: Tue, 2 Apr 2024 01:57:27 +0200 Subject: [PATCH] Fixed install script --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 77d6f0d..1c7138d 100755 --- a/install.sh +++ b/install.sh @@ -37,7 +37,7 @@ arch_install() { # Install Ansible if ! [ -x "$(command -v ansible)" ]; then print_header "Installing ansible" - cmd "pacman -S ansible --noconfirm" + cmd "sudo pacman -S ansible --noconfirm" fi # Install Git if ! [ -x "$(command -v git)" ]; then @@ -50,7 +50,7 @@ arch_install() { cmd "sudo pacman -S python-pip --noconfirm" fi # Install Watchdog - if [ -x "$(pip list | grep watchdog)" ]; then + if [ -z "$(pip list | grep watchdog)" ]; then print_header "Installing watchdog" cmd "pip install --break-system-packages watchdog" fi