mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 07:04:29 +00:00
osx/install: Run through shellcheck
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
72bf267d96
commit
6b6884aec6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue