lib.sh: move git_err() to build

it's only used in the main build script, so move it there.

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2
Leah Rowe 2024-06-27 14:32:20 +01:00 committed by Leah Rowe
parent 43238fa0c5
commit f3baebe7e1
2 changed files with 6 additions and 6 deletions

6
build
View File

@ -49,6 +49,12 @@ git_init()
git tag -a "$version" -m "$projectname $version" || return 1
}
git_err()
{
printf "You need to set git name/email, like so:\n%s\n\n" "$1" 1>&2
$err "Git name/email not configured"
}
mkrelease()
{
export XBMK_RELEASE="y"

View File

@ -136,12 +136,6 @@ remkdir()
mkdir -p "$1" || $err "remkdir: !mkdir -p \"$1\""
}
git_err()
{
printf "You need to set git name/email, like so:\n%s\n\n" "$1" 1>&2
$err "Git name/email not configured"
}
mkrom_tarball()
{
printf "%s\n" "$version" > "$1/version" || $err "$1 !version"