summaryrefslogtreecommitdiff
path: root/include/err.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-11-08 06:05:49 +0000
committerLeah Rowe <leah@libreboot.org>2023-11-08 06:11:24 +0000
commitf4b2a588e27f1bc8d13ed1f31c68590bd76dcf4f (patch)
tree879af8b7514905d21d8c70715a16c008ce720410 /include/err.sh
parentc4d90087535617d4fb31ca94803f9426010cfec5 (diff)
build: don't generate version/versiondate as root
don't run it directly at the bottom of err.sh, because otherwise the version and versiondate files will be generated when running "./build dependencies distroname" which would then create these files, but as root because the user runs that specific command as root. the rest of lbmk, for any other command, prevents use of the root account, so running check_project during "./build dependencies distroname" will cause the build system to fail (because as non-root user, the user will run lbmk and it will try to update those files, and fail because it can't, due to lack of permissions) this patch fixes the issue, by only generating those files if the user is *not* root Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/err.sh')
-rwxr-xr-xinclude/err.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/err.sh b/include/err.sh
index 33246d12..595d6c77 100755
--- a/include/err.sh
+++ b/include/err.sh
@@ -78,5 +78,3 @@ err()
printf "ERROR %s: %s\n" "${0}" "${1}" 1>&2
exit 1
}
-
-check_project