use id command instead of variable
This commit is contained in:
parent
e9563be67a
commit
574b7ce5f1
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# quick install (and run) script for upfast using systemd
|
||||
if [ $EUID -ne 0]
|
||||
if [ "$(id -u)" -ne 0 ]
|
||||
then
|
||||
echo "Please run as root"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user