diff options
author | Dubiousjim <dubiousjim@gmail.com> | 2013-07-05 00:21:37 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-09 07:12:56 +0000 |
commit | b2d6b47be1ae42ff6271cfa31283a518ea5949ef (patch) | |
tree | 1b7de05e4c09f8dd678f31cff96e31ed51960467 /apkgrel.in | |
parent | f15c630cb888dad70809efc12644a4570372320b (diff) | |
download | abuild-b2d6b47be1ae42ff6271cfa31283a518ea5949ef.tar.gz abuild-b2d6b47be1ae42ff6271cfa31283a518ea5949ef.tar.bz2 abuild-b2d6b47be1ae42ff6271cfa31283a518ea5949ef.tar.xz abuild-b2d6b47be1ae42ff6271cfa31283a518ea5949ef.zip |
various: s/echo/msg/, s/echo/error/, tweak error messages
Diffstat (limited to 'apkgrel.in')
-rw-r--r-- | apkgrel.in | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -25,7 +25,7 @@ show_plain() { show_pretty() { ( . "$1" || exit 1 - [ -n "$pkgname" ] || die "$1: no pkgname" + [ -n "$pkgname" ] || die "no \$pkgname for $1" printf '%s: r%s\n' "$pkgname" "${pkgrel:-?}" ) } @@ -63,7 +63,7 @@ do_verify() { for f; do [ -d "$f" ] && f="$f/APKBUILD" if ! grep -q '^pkgrel=[0-9]' "$f"; then - echo "$f: Has no proper pkgrel" >&2 + error "no proper \$pkgrel for $f" rc=1 fi done |