Skip to content
Snippets Groups Projects
Commit 2ef7ed90 authored by Natanael Copa's avatar Natanael Copa
Browse files

functions: msg should always return success

Otherwise abuild-sign will end with error
parent 0f5feef3
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,9 @@ abuild) ...@@ -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) ...@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment