mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-02 20:42:43 +00:00
functions: msg should always return success
Otherwise abuild-sign will end with error
This commit is contained in:
parent
0f5feef3c2
commit
2ef7ed908c
@ -109,7 +109,9 @@ abuild)
|
|||||||
local prompt="$GREEN>>>${NORMAL}"
|
local prompt="$GREEN>>>${NORMAL}"
|
||||||
local fake="${FAKEROOTKEY:+${BLUE}*${NORMAL}}"
|
local fake="${FAKEROOTKEY:+${BLUE}*${NORMAL}}"
|
||||||
local name="${STRONG}${subpkgname:-$pkgname}${NORMAL}"
|
local name="${STRONG}${subpkgname:-$pkgname}${NORMAL}"
|
||||||
[ -z "$quiet" ] && printf "${prompt} ${name}${fake}: $@\n" >&2
|
if [ -z "$quiet" ]; then
|
||||||
|
printf "${prompt} ${name}${fake}: $@\n" >&2
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
warning() {
|
warning() {
|
||||||
@ -129,7 +131,9 @@ abuild)
|
|||||||
*)
|
*)
|
||||||
msg() {
|
msg() {
|
||||||
# Here we write to stdout, but abuild's fancier messages write to stderr
|
# Here we write to stdout, but abuild's fancier messages write to stderr
|
||||||
[ -z "$quiet" ] && echo "$@"
|
if [ -z "$quiet" ]; then
|
||||||
|
echo "$@"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
error() {
|
error() {
|
||||||
|
Loading…
Reference in New Issue
Block a user