Wed, 28 Aug 2024 04:44:05 -0500
add assign types gopls hint too
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 | } |