mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 03:25:25 +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:
@@ -22,6 +22,8 @@
|
||||
[ "x${DEBUG+set}" = 'xset' ] && set -v
|
||||
set -u -e
|
||||
|
||||
. "include/err.sh"
|
||||
|
||||
main()
|
||||
{
|
||||
printf "Building GRUB\n"
|
||||
@@ -41,10 +43,4 @@ build_grub()
|
||||
)
|
||||
}
|
||||
|
||||
err()
|
||||
{
|
||||
printf "%s: error: %s\n" $0 $1
|
||||
exit 1
|
||||
}
|
||||
|
||||
main $@
|
||||
|
||||
Reference in New Issue
Block a user