Fixed install script
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user