From 9a0565c195596f4c80359046aef4b947a9e51537 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Thu, 5 Sep 2019 22:48:52 +0100 Subject: [PATCH] Fixes install script --- install.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index b92b9063..855b971a 100755 --- a/install.sh +++ b/install.sh @@ -71,10 +71,14 @@ pacmanInstall(){ "zathura-pdf-mupdf" "zsh" ) - if pacman -Qs $package > /dev/null; then - echo "Installing $i" - sudo pacman -S $i - fi + for package in ${packages[*]}; do + if pacman -Qs $package > /dev/null; then + echo "Installing $package" + sudo pacman -S $package + else + echo "Already installed $package" + fi + done } aurInstall(){ @@ -106,8 +110,8 @@ stInstall(){ cd $SCRIPT_DIR } -dwmInstall -stInstall +#dwmInstall +#stInstall pacmanInstall -doStow +#doStow