test-lib-main.sh: minor efficiencies
commita7ad16fa93fb8cf67708e1f97c8f3d16f8bdd71b
authorKyle J. McKay <mackyle@gmail.com>
Fri, 16 Dec 2016 12:47:21 +0000 (16 04:47 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 16 Dec 2016 12:47:21 +0000 (16 04:47 -0800)
tree70272e2033816680e0e6947d4aef41c56e7d21c3
parentd406831edec4f890a692257ec7d337cf9221da02
test-lib-main.sh: minor efficiencies

Do not run rm if the thing to be removed does not exist.

Cache the result of `uname -s` so it only need be run once.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
t/test-lib-main.sh