From 936b649b73de05dd0b6037ba94bd5d426194e05f Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Tue, 15 Feb 2022 22:10:30 +0330 Subject: EUID is a bash variable. cant use it even though its faster. --- chroot/make_devices.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chroot/make_devices.sh') diff --git a/chroot/make_devices.sh b/chroot/make_devices.sh index f4191bd..311ded5 100755 --- a/chroot/make_devices.sh +++ b/chroot/make_devices.sh @@ -1,6 +1,6 @@ #!/bin/sh -if [ ! "$EUID" = 0 ];then +if [ ! "$(id -u)" = 0 ];then echo "this scripts must be run as root" exit 1; fi -- cgit v1.2.3