mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-15 08:20:59 +02:00
unify err functions across scripts
include/err.sh this new handling also does mundane things, such as tell you what script b0rked Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
[ "x${DEBUG+set}" = 'xset' ] && set -v
|
||||
set -u -e
|
||||
|
||||
. "include/err.sh"
|
||||
|
||||
projectname="$(cat projectname)"
|
||||
opts=""
|
||||
boards=
|
||||
@@ -116,9 +118,4 @@ buildrom() {
|
||||
./build boot roms_helper ${1}${opts}
|
||||
}
|
||||
|
||||
err() {
|
||||
printf '%s\n' "${1}" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
main $@
|
||||
|
||||
@@ -30,11 +30,7 @@
|
||||
[ "x${DEBUG+set}" = 'xset' ] && set -v
|
||||
set -u -e
|
||||
|
||||
err()
|
||||
{
|
||||
printf "ERROR: build/boot/roms: %s\n" "${1}" 1>&2
|
||||
exit 1
|
||||
}
|
||||
. "include/err.sh"
|
||||
|
||||
projectname="$(cat projectname)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user