Check if any packages need updating before attempting

This commit is contained in:
Evie Litherland-Smith 2023-02-09 00:02:40 +00:00
parent 9c1dd1ce27
commit d2c5ba1d1e

View file

@ -21,7 +21,7 @@ install: config packages
config: $(CONFIG_TARGETS) zsh ssh nvim
packages:
sudo pacman --needed -S - < pkglist.txt
pacman -T - < pkglist.txt || sudo pacman --needed -S - < pkglist.txt
clean:
for link in $(CONFIG_TARGETS); do rm "$$link"; done