[pacman-dev] [PATCH 4/5] updpkgsums: avoid fancy quoting in error message

Dave Reisner dreisner at archlinux.org
Wed Jun 13 14:00:42 EDT 2012


m4 has a field day parsing escapes and actually vandalizes this string,
causing the error to look like:

 ==> ERROR: \PKGBUILD\ not found or is not a file

Avoid all quoting and just match up with how makepkg reports errors (no
quoting at all).

Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
 contrib/updpkgsums.sh.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/updpkgsums.sh.in b/contrib/updpkgsums.sh.in
index f4649b5..38c8281 100755
--- a/contrib/updpkgsums.sh.in
+++ b/contrib/updpkgsums.sh.in
@@ -43,7 +43,7 @@ esac
 
 buildfile=${1:-PKGBUILD}
 if [[ ! -f $buildfile ]]; then
-	printf $'==> ERROR: \`%s\' not found or is not a file: %s\n' "$buildfile"
+	printf '==> ERROR: %s not found or is not a file: %s\n' "$buildfile"
 	exit 1
 fi
 
-- 
1.7.10.4



More information about the pacman-dev mailing list