install.sh: cache root check
commitcbac00465beaf10735be583de84198cfc3ec681f
authorKyle J. McKay <mackyle@gmail.com>
Mon, 23 Nov 2020 21:06:11 +0000 (23 14:06 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 23 Nov 2020 21:06:11 +0000 (23 14:06 -0700)
treec4964617f98152c724106269a022ed750a5a1d29
parent324651328162bc248d53c5d5a9c99dc2ea1767d3
install.sh: cache root check

Only run the `id -u` command to check for root once.
Cache the result and use that instead of running it 3 times.

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