summaryrefslogtreecommitdiff
path: root/db-cleanup
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-cleanup
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-cleanup')
-rwxr-xr-xdb-cleanup4
1 files changed, 2 insertions, 2 deletions
diff --git a/db-cleanup b/db-cleanup
index b2f2e08..6ac9747 100755
--- a/db-cleanup
+++ b/db-cleanup
@@ -30,7 +30,7 @@ EXTRAFLAGS=()
for _repo in "${PKGREPOS[@]}"; do
for _arch in "${ARCHES[@]}"; do
- msg "Getting ${_repo}-${_arch} database"
+ msg "Getting %s-%s database" "${_repo}" "${_arch}"
dbfile="${FTP_BASE}/${_repo}/os/${_arch}/${_repo}${DBEXT}"
@@ -51,7 +51,7 @@ done
msg "Removing old files:"
for POOL in "${PKGPOOLS[@]}" "${SRCPOOLS[@]}"; do
- msg2 "${POOL}"
+ msg2 '%s' "${POOL}"
rsync "${EXTRAFLAGS[@]}" -va --delete-excluded \
--include-from="/tmp/${0##*/}.$$.filter" \