summaryrefslogtreecommitdiff
path: root/db-check-nonfree
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 13:45:10 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 13:45:10 -0400
commit386c2d00249eb244bbcc9a173a64f9435b70180a (patch)
tree8930f8ccf7588bf2a6c256810d4c4e0ced3bf1a4 /db-check-nonfree
parentba575a4e64be157eeae1028ed86b29cb0042f41b (diff)
Use printf formatters instead of string interpolation.
I used this command to find them: egrep -r --exclude-dir={test,.git} '(plain|msg|msg2|warning|error|stat_busy|stat_done|abort|die)\s+"?[^"]*\$'
Diffstat (limited to 'db-check-nonfree')
-rwxr-xr-xdb-check-nonfree6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-check-nonfree b/db-check-nonfree
index cae4a14..c1673c3 100755
--- a/db-check-nonfree
+++ b/db-check-nonfree
@@ -4,7 +4,7 @@
. "$(dirname "$(readlink -e "$0")")/db-functions"
if [ $# -ge 1 ]; then
- warning "Calling ${0##*/} with a specific repository is not supported"
+ warning "Calling %s with a specific repository is not supported" "${0##*/}"
exit 1
fi
@@ -19,7 +19,7 @@ msg "Check nonfree in repo:"
nonfree=($(cut -d: -f1 "${BLACKLIST_FILE}" | sort -u))
for repo in "${ARCHREPOS[@]}"; do
for pkgarch in "${ARCHES[@]}"; do
- msg2 "$repo $pkgarch"
+ msg2 "%s %s" "$repo" "$pkgarch"
if [ ! -f "${FTP_BASE}/${repo}/os/${pkgarch}/${repo}${DBEXT}" ]; then
continue
fi
@@ -33,7 +33,7 @@ for repo in "${ARCHREPOS[@]}"; do
fi
done
if [ ${#cleanpkgs[@]} -ge 1 ]; then
- msg2 "Nonfree: ${cleanpkgs[*]}"
+ msg2 "Nonfree: %s" "${cleanpkgs[*]}"
arch_repo_remove "${repo}" "${pkgarch}" "${cleanpkgs[@]}"
fi
done