mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
move id check to lib.sh too
doesn't really matter, it's just an extra layer to ensure reliability, but "id" is pretty standard Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -61,6 +61,7 @@ install_packages()
|
||||
}
|
||||
[ $# -gt 0 ] && [ "$1" = "dependencies" ] && install_packages $@ && return 0
|
||||
|
||||
id -u 1>/dev/null 2>/dev/null || $err "suid check failed (id -u)"
|
||||
[ "$(id -u)" != "0" ] || $err "this command as root is not permitted"
|
||||
|
||||
# if "y": a coreboot target won't be built if target.cfg says release="n"
|
||||
|
||||
Reference in New Issue
Block a user