.lib/sh/util.sh@3a0ff0563a7b
.lib/sh/util.sh
Mon, 27 Feb 2023 13:49:07 -0600
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Mon, 27 Feb 2023 13:49:07 -0600
- changeset 1054
- 3a0ff0563a7b
- parent 969
-
28111ba4e573
- permissions
- -rw-r--r--
tweak completion a little more
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
}