summaryrefslogtreecommitdiff
path: root/script/update
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-09 22:30:22 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-09 22:30:22 +0100
commitf45f5e625daa119ec5c830290164a1a469054da7 (patch)
tree9c659c9384b865e88b442d0636f43b1b8a4d1b73 /script/update
parent3e76e70d83a1f9230e93d633317070bc14be0591 (diff)
update/project/*: remove redundant checks
these scripts used to be in the main directory of lbmk, and thus needed to check for root user, and also git credentials. now they are called by the main lbmk script, which also runs the same checks. avoid waste of resources by not running the same check twice. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/update')
-rwxr-xr-xscript/update/project/repo7
-rwxr-xr-xscript/update/project/trees7
2 files changed, 0 insertions, 14 deletions
diff --git a/script/update/project/repo b/script/update/project/repo
index 0183bf43..9f0a9180 100755
--- a/script/update/project/repo
+++ b/script/update/project/repo
@@ -17,13 +17,6 @@ depend=""
main()
{
- id -u 1>/dev/null 2>/dev/null || \
- fail "cannot ascertain user id"
- if [ "$(id -u)" = "0" ]; then
- fail "running lbmk as root is not permitted"
- fi
- ./checkgit || err "Please read: https://libreboot.org/docs/build/"
-
[ $# -gt 0 ] || fail "no argument given"
[ -z "${1+x}" ] && fail 'main(): name not set'
diff --git a/script/update/project/trees b/script/update/project/trees
index 2b99160c..0c4e9d58 100755
--- a/script/update/project/trees
+++ b/script/update/project/trees
@@ -34,13 +34,6 @@ cfgsdir=""
main()
{
- id -u 1>/dev/null 2>/dev/null || \
- err "cannot ascertain user id"
- if [ "$(id -u)" = "0" ]; then
- err "running lbmk as root is not permitted"
- fi
- ./checkgit || err "Please read: https://libreboot.org/docs/build/"
-
rm -f "${cfgsdir}"/*/seen || err_rm_seen "main 1"
printf "Downloading %s and (if available) applying patches\n" \