summaryrefslogtreecommitdiff
path: root/db-functions
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 14:20:35 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 14:20:35 -0400
commitb3c27405fb9e2686d3db9ee23ca616dc6b93b1f3 (patch)
treeb75445c37d982ba6c4407ec2fa4a73b4048a42ba /db-functions
parentb2abcf95b33fc3c24855da83bc71112098e849b4 (diff)
silly whitespace and similar fidling
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/db-functions b/db-functions
index 51fc1bd..accc508 100644
--- a/db-functions
+++ b/db-functions
@@ -188,7 +188,7 @@ repo_lock () {
while [ "$_count" -le "$_trial" ] || "$_lockblock" ; do
if ! mkdir "$LOCKDIR" >/dev/null 2>&1 ; then
_owner="$(/usr/bin/stat -c %U "$LOCKDIR")"
- warning "Repo [%s] (%s) is already locked by %s." "$1" "$2" "$_owner"
+ warning "Repo [%s] (%s) is already locked by %s." "${1}" "${2}" "$_owner"
msg2 "Retrying in %d seconds..." "$LOCK_DELAY"
else
LOCKS+=("$1.$2")
@@ -490,7 +490,7 @@ set_repo_permission() {
if [ -w "${dbfile}" ]; then
local group=$(/usr/bin/stat --printf='%G' "$(dirname "${dbfile}")")
- chgrp "$group" "${dbfile}" || error "Could not change group of %s to %s" "${dbfile}" "$group"
+ chgrp "$group" "${dbfile}" || error "Could not change group of %s to %s" "${dbfile}" "$group"
chgrp "$group" "${filesfile}" || error "Could not change group of %s to %s" "${filesfile}" "$group"
chmod g+w "${dbfile}" || error "Could not set write permission for group %s to %s" "$group" "${dbfile}"
chmod g+w "${filesfile}" || error "Could not set write permission for group %s to %s" "$group" "${filesfile}"