.lib/sh/util.sh@b57969db48db
.lib/sh/util.sh
Sun, 12 Feb 2023 14:42:31 -0600
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Sun, 12 Feb 2023 14:42:31 -0600
- changeset 1014
- b57969db48db
- parent 969
-
28111ba4e573
- permissions
- -rw-r--r--
start nvim config
warn() { echo "$*" >&2; }
die() { warn "$*"; exit 1; }
clone_or_pull() {
if ! [ -d $2 ]; then
git clone --single-branch --depth 1 "$1" $2
else
echo "$2:"
git -C "$2" pull
fi
}