summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild1
-rwxr-xr-xinclude/lib.sh1
2 files changed, 1 insertions, 1 deletions
diff --git a/build b/build
index 421c163c..748ff4f0 100755
--- a/build
+++ b/build
@@ -24,7 +24,6 @@ linkname="${linkpath##*/}"
main()
{
- x_ id -u 1>/dev/null 2>/dev/null
[ $# -lt 1 ] && badcmd
spath="script/$1"
diff --git a/include/lib.sh b/include/lib.sh
index 23dfe81a..6a4be7ee 100755
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -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"