Thu, 16 Mar 2023 12:30:42 -0500
Fix stopinsert
969 | 1 | warn() { echo "$*" >&2; } |
2 | die() { warn "$*"; exit 1; } | |
3 | ||
4 | clone_or_pull() { | |
5 | if ! [ -d $2 ]; then | |
6 | git clone --single-branch --depth 1 "$1" $2 | |
7 | else | |
8 | echo "$2:" | |
9 | git -C "$2" pull | |
10 | fi | |
11 | } |