Clean up additions to renew-cert script
requested to merge leo-singer/gwcelery:cvmfs-token-into-renew-cert-cleanup into cvmfs-token-into-renew-cert
- Add missing newlines back to file ends.
- Remove unnecessary sleep.
- Remove
-d
flag tohtgettoken
; it leaks access tokens. - Replace
/home/${USER}
with${HOME}
. - Refactor kinit commands as a function. The function automatically determines the principal name by inspecting the output from klist.