diff options
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 |