REF add a useful note justifying the existence of this script

This commit is contained in:
Nathan Dwarshuis 2021-02-15 21:28:58 -05:00
parent de2b82daef
commit c6e484f819
1 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,11 @@
#! /bin/bash #! /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 () { clone_maybe () {
if [ ! -d "$2" ]; then if [ ! -d "$2" ]; then
echo cloning git repo: "$1" echo cloning git repo: "$1"