Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-09-02 16:50:08 -0400
committerAllan McRae <allan@archlinux.org>2013-09-18 14:28:02 +1000
commitcfbc4fe8098dd992258648470b76d2dce081af01 (patch)
tree36d8855fa1520c4347667d8e638e4cf1c8623826 /scripts
parent61e806b96a8828152e78ab9eff03c490a23b22e9 (diff)
makepkg: cleanup a few format string injections
Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index d0951dfa..5a74b3ed 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1204,16 +1204,16 @@ check_checksums() {
for file in "${source[@]}"; do
local found=1
file="$(get_filename "$file")"
- printf "%s" " $file ... " >&2
+ printf ' %s ... ' "$file" >&2
if [[ ${integrity_sums[$idx]} = 'SKIP' ]]; then
- echo "$(gettext "Skipped")" >&2
+ printf '%s\n' "$(gettext "Skipped")" >&2
idx=$((idx + 1))
continue
fi
if ! file="$(get_filepath "$file")"; then
- printf -- "$(gettext "NOT FOUND")\n" >&2
+ printf '%s\n' "$(gettext "NOT FOUND")" >&2
errors=1
found=0
fi
@@ -1223,9 +1223,9 @@ check_checksums() {
local realsum="$(openssl dgst -${integ} "$file")"
realsum="${realsum##* }"
if [[ $expectedsum = "$realsum" ]]; then
- printf -- "$(gettext "Passed")\n" >&2
+ printf '%s\n' "$(gettext "Passed")" >&2
else
- printf -- "$(gettext "FAILED")\n" >&2
+ printf '%s\n' "$(gettext "FAILED")" >&2
errors=1
fi
fi