summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild2
-rwxr-xr-xinclude/lib.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/build b/build
index 1fdc69c4..421c163c 100755
--- a/build
+++ b/build
@@ -28,8 +28,6 @@ main()
[ $# -lt 1 ] && badcmd
spath="script/$1"
- [ "$(id -u)" != "0" ] || $err "this command as root is not permitted"
-
for g in "which git" "git config --global user.name" \
"git config --global user.email" "git_init"; do
eval "$g 1>/dev/null 2>/dev/null || git_err \"$g\""
diff --git a/include/lib.sh b/include/lib.sh
index c5bd4bc9..23dfe81a 100755
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -61,6 +61,8 @@ install_packages()
}
[ $# -gt 0 ] && [ "$1" = "dependencies" ] && install_packages $@ && return 0
+[ "$(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"
# (this is used to exclude certain build targets from releases)