Pull submodules before updating

This commit is contained in:
Evie Litherland-Smith 2023-06-03 08:40:27 +01:00
parent 13d17e3bad
commit c58a3ec4cc

View file

@ -7,9 +7,9 @@ SUBMODULES := $(CONFIG_DIR)/nvim $(CONFIG_DIR)/hypr $(CONFIG_DIR)/waybar
.PHONY: default clean nixos home /etc/nixos/config
default: $(SUBMODULES)
git submodule foreach git pull --ff-only
command -v nix > /dev/null || exit 1
[ -e /etc/nixos/ ] && make nixos || make home
git submodule foreach git pull --ff-only
bat cache --build
clean: