diff options
author | terminaldweller <thabogre@gmail.com> | 2022-02-15 18:40:30 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-02-15 18:40:30 +0000 |
commit | 936b649b73de05dd0b6037ba94bd5d426194e05f (patch) | |
tree | 8f39ffbbaf6511c3b2b0797d7a07431159825627 | |
parent | now make_devices complains if not run with root (diff) | |
download | scripts-936b649b73de05dd0b6037ba94bd5d426194e05f.tar.gz scripts-936b649b73de05dd0b6037ba94bd5d426194e05f.zip |
EUID is a bash variable. cant use it even though its faster.
Diffstat (limited to '')
-rwxr-xr-x | chroot/make_devices.sh | 2 |
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 |