~ecs/tm

6e0ad4c7882962a122314495c53ebc201b2e5abc — Ember Sawady 3 years ago 0c7220a
init: minor fixups
1 files changed, 2 insertions(+), 6 deletions(-)

M tm-init
M tm-init => tm-init +2 -6
@@ 1,12 1,8 @@
#!/bin/sh -eu

if [ $# -ne 0 ]; then
	abort "usage: tm init"
fi
. "$(dirname -- "$0")/lib.sh"
set +u
[ -z "$TM_AUTHOR" ] && abort "error: TM_AUTHOR unset"
set -u
[ $# -ne 0 ] && abort "usage: tm init"
[ -z "${TM_AUTHOR:-}" ] && abort "error: TM_AUTHOR unset"
mkdir -p -- "$TM_DIR/objects" "$TM_DIR/refs"
[ -e "$TM_DIR/refs/index" ] || echo "Initial commit" \
	| tm commit-tree "$(echo tree | write)" 2>/dev/null \