From b03202e3ff9af9c961f813332c962913b6f81d22 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Thu, 6 Feb 2025 22:03:18 -0600 Subject: pull repos if existing and firefox add search engine for nixos options --- modules/home/resources/activation-scripts/clone-repos.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules/home/resources') diff --git a/modules/home/resources/activation-scripts/clone-repos.sh b/modules/home/resources/activation-scripts/clone-repos.sh index 887968b..eaee4dc 100644 --- a/modules/home/resources/activation-scripts/clone-repos.sh +++ b/modules/home/resources/activation-scripts/clone-repos.sh @@ -3,8 +3,14 @@ server="https://git.tjkeller.xyz/" clonemissing() { + # pull and return if already existing + if [ -d "$2"/.git ]; then + run cd $VERBOSE_ARG "$2" + run git pull $VERBOSE_ARG || echo "$2: failed to pull from remote" + return + fi + # clone to $2 - [ -d "$2"/.git ] && return run mkdir -p $VERBOSE_ARG "$2" run git clone $VERBOSE_ARG "$server$1" "$2" -- cgit v1.2.3