#!/bin/sh
+set -euf
+
usage="Usage: $0 [-i instance] [-p principal] [-a addrend] subcommand [args]"
+ATHENA_USER=${ATHENA_USER:-$USER}
principal="$ATHENA_USER/root@ATHENA.MIT.EDU"
addrend="root"
while getopts "i:p:a:h" options; do
kinit -F -5 -l15m "$principal" "$@"
}
-case $1 in
+case ${1:-} in
init)
shift;
exec kinit -F -5 -l15m "$principal" "$@"