Formatting broken in updpkgsums
Commit 7d58d503 (unreleased) broke formatting of error messages in updpkgsums
:
$ updpkgsums
==> ERROR: %s not found or is not a file
==> ERROR: PKGBUILD
I would propose to either revert the change (see below) in question or to ditch this custom implementation of die
entirely and use the error
function as provided by pacman in /usr/share/makepkg/util/message.sh
.
diff --git a/src/updpkgsums.sh.in b/src/updpkgsums.sh.in
index d05ae53..e2f296a 100644
--- a/src/updpkgsums.sh.in
+++ b/src/updpkgsums.sh.in
@@ -51,7 +51,7 @@ version() {
}
die() {
- printf "==> ERROR: %s\n" "$1" "${@:2}" >&2
+ printf "==> ERROR: $1\n" "${@:2}" >&2
exit 1
}
Maybe its also worth revisiting the commit to see if more things broke.