osx/install: Run through shellcheck

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2019-11-28 11:41:29 -08:00 committed by Fabian Homborg
parent 72bf267d96
commit 6b6884aec6

View file

@ -4,8 +4,8 @@
set -e
# Make sure we're run as root
scriptname=`basename "$0"`
if [[ $UID -ne 0 ]]; then
scriptname=$(basename "$0")
if [ "$UID" -ne 0 ]; then
echo "${scriptname} must be run as root"
exit 1
fi