tg.sh: move tmpdir cleanup into its own function
commit0dec5f9999e00a3d167ec0887aaf00581b6bf375
authorKyle J. McKay <mackyle@gmail.com>
Sat, 13 Jan 2018 23:47:17 +0000 (13 15:47 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 13 Jan 2018 23:47:17 +0000 (13 15:47 -0800)
tree2dd112c2181949cd214b6649b94d77dc9cd31351
parent3a343e527f329adbd7e715ffec4006826d4917d1
tg.sh: move tmpdir cleanup into its own function

Move cleanup of the TopGit temp directory into its own function so
it can be called directly and to simplify the trap handling.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
tg.sh