.lib/sh/util.sh

Mon, 14 Aug 2023 22:04:03 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 14 Aug 2023 22:04:03 -0400
changeset 1127
a120f1d3d932
parent 969
28111ba4e573
permissions
-rw-r--r--

tmux: update DBUS_SESSION_BUS_ADDRESS to fix gpg pinentry

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
}

mercurial