aboutsummaryrefslogtreecommitdiffstats
path: root/chroot
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-02-15 18:40:30 +0000
committerterminaldweller <thabogre@gmail.com>2022-02-15 18:40:30 +0000
commit936b649b73de05dd0b6037ba94bd5d426194e05f (patch)
tree8f39ffbbaf6511c3b2b0797d7a07431159825627 /chroot
parentnow make_devices complains if not run with root (diff)
downloadscripts-936b649b73de05dd0b6037ba94bd5d426194e05f.tar.gz
scripts-936b649b73de05dd0b6037ba94bd5d426194e05f.zip
EUID is a bash variable. cant use it even though its faster.
Diffstat (limited to 'chroot')
-rwxr-xr-xchroot/make_devices.sh2
1 files changed, 1 insertions, 1 deletions
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