summaryrefslogtreecommitdiff
path: root/cron-jobs/repo-sanity-check
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 /cron-jobs/repo-sanity-check
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 'cron-jobs/repo-sanity-check')
-rwxr-xr-xcron-jobs/repo-sanity-check4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron-jobs/repo-sanity-check b/cron-jobs/repo-sanity-check
index 105bac4..012b544 100755
--- a/cron-jobs/repo-sanity-check
+++ b/cron-jobs/repo-sanity-check
@@ -6,7 +6,7 @@
# Traverse all repos
for _repo in "${PKGREPOS[@]}"; do
- msg "Cleaning up [${_repo}]"
+ msg "Cleaning up [%s]" "${_repo}"
# Find all pkgnames on this repo's abs
on_abs=($(
@@ -30,7 +30,7 @@ for _repo in "${PKGREPOS[@]}"; do
# quit if abs is empty
if [ ${#on_abs[*]} -eq 0 ]; then
- warning "[${_repo}]'s ABS tree is empty, skipping"
+ warning "[%s]'s ABS tree is empty, skipping" "${_repo}"
break
fi