use id command instead of variable

This commit is contained in:
root 2023-04-05 14:10:59 +02:00
parent e9563be67a
commit 574b7ce5f1

View File

@ -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