mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
osx/install: Run through shellcheck
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Fabian Homborg
parent
72bf267d96
commit
6b6884aec6
@@ -4,8 +4,8 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Make sure we're run as root
|
# Make sure we're run as root
|
||||||
scriptname=`basename "$0"`
|
scriptname=$(basename "$0")
|
||||||
if [[ $UID -ne 0 ]]; then
|
if [ "$UID" -ne 0 ]; then
|
||||||
echo "${scriptname} must be run as root"
|
echo "${scriptname} must be run as root"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user