summaryrefslogtreecommitdiffstats
path: root/contrib/bacman.sh.in
diff options
context:
space:
mode:
authorAaron Lindsay <aaron@aclindsay.com>2013-09-05 20:46:29 +0200
committerAllan McRae <allan@archlinux.org>2013-09-18 06:28:03 +0200
commit3f99cfba1b6ef1c5665488b651a3d6409730fa98 (patch)
tree453c75070ae7b3b2a4b095bdc50c340819084aa6 /contrib/bacman.sh.in
parent93888089643b017390538d1f6f3a2d2aa9918851 (diff)
downloadpacman-3f99cfba1b6ef1c5665488b651a3d6409730fa98.tar.gz
pacman-3f99cfba1b6ef1c5665488b651a3d6409730fa98.tar.xz
contrib: Unify quoting in error messages
This fixes error messages to display the contents of variables rather than the variable name by replacing backticks with single quotes (m4 eats backticks). It also removes $"" localization from error messages to eliminate security holes. For instance, `rankmirrors nonexistent_file' will now display: 'nonexistent_file' does not exist. rather than: $1 does not exist. Signed-off-by: Aaron Lindsay <aaron@aclindsay.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'contrib/bacman.sh.in')
-rw-r--r--contrib/bacman.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/bacman.sh.in b/contrib/bacman.sh.in
index 5435e405..33e3920a 100644
--- a/contrib/bacman.sh.in
+++ b/contrib/bacman.sh.in
@@ -124,7 +124,7 @@ fi
if [[ ! -d $pkg_dir ]]; then
error "package %s is found in pacman database," "${pkg_name}"
- plain " but \`%s' is not a directory" "${pkg_dir}"
+ plain " but '%s' is not a directory" "${pkg_dir}"
exit 1
fi