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