mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
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>
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user