diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-09 11:14:29 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-09 11:14:29 +0000 |
commit | 2ef7ed908c6e5ee1237a7db377b0363159cacfaa (patch) | |
tree | a5e8b5ab9486e8c5db15344b6719f936ae7d6d84 | |
parent | 0f5feef3c2b47590811e3c9abdfdd224701cde5d (diff) | |
download | abuild-2ef7ed908c6e5ee1237a7db377b0363159cacfaa.tar.gz abuild-2ef7ed908c6e5ee1237a7db377b0363159cacfaa.tar.bz2 abuild-2ef7ed908c6e5ee1237a7db377b0363159cacfaa.tar.xz abuild-2ef7ed908c6e5ee1237a7db377b0363159cacfaa.zip |
functions: msg should always return success
Otherwise abuild-sign will end with error
-rw-r--r-- | functions.sh.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/functions.sh.in b/functions.sh.in index 395e407..f1db66c 100644 --- a/functions.sh.in +++ b/functions.sh.in @@ -109,7 +109,9 @@ abuild) local prompt="$GREEN>>>${NORMAL}" local fake="${FAKEROOTKEY:+${BLUE}*${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() { @@ -129,7 +131,9 @@ abuild) *) msg() { # Here we write to stdout, but abuild's fancier messages write to stderr - [ -z "$quiet" ] && echo "$@" + if [ -z "$quiet" ]; then + echo "$@" + fi } error() { |