From c6e484f8198da87125adff230d66a84ee98fd0a9 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Mon, 15 Feb 2021 21:28:58 -0500 Subject: [PATCH] REF add a useful note justifying the existence of this script --- run_once_clone-repos.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run_once_clone-repos.sh b/run_once_clone-repos.sh index 3d8563f..daa67e3 100644 --- a/run_once_clone-repos.sh +++ b/run_once_clone-repos.sh @@ -1,5 +1,11 @@ #! /bin/bash +## This script pulls all my git repos that I use in my config. It will only pull +## them if they don't exist. Rather than use the import approach suggested in +## the chezmoi howto, this doesn't require me to keep 'syncing' changes when I +## work in these repos directly. The tradeoff is that it will only pull the +## latest master, which is totally fine with me. + clone_maybe () { if [ ! -d "$2" ]; then echo cloning git repo: "$1"