From 3851cd367cd4211fa3a4834741541f6acad1bb45 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 26 May 2023 13:00:52 +0100 Subject: [PATCH] Add existing directory catch to git clone steps --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e2514364..8eab031c 100644 --- a/Makefile +++ b/Makefile @@ -43,10 +43,10 @@ $(CONFIG_DIR) $(HOMEMANAGER_CONFIG_DIR) $(BIN_DIR): mkdir -p $@ $(CONFIG_DIR)/nvim: $(CONFIG_DIR) - git clone $(NVIM_REPO) $@ + [ -d $@ ] && touch $@ || git clone $(NVIM_REPO) $@ $(CONFIG_DIR)/hypr: $(CONFIG_DIR) - git clone $(HYPR_REPO) $@ + [ -d $@ ] && touch $@ || git clone $(HYPR_REPO) $@ | continue $(CONFIG_DIR)/waybar: $(CONFIG_DIR) - git clone $(WAYBAR_REPO) $@ + [ -d $@ ] && touch $@ || git clone $(WAYBAR_REPO) $@ | continue