summaryrefslogtreecommitdiff
path: root/db-functions
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-02 23:14:35 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-02 23:14:35 -0400
commit0d6706721278efd42eefa3a4d54ee9773711e65e (patch)
tree6781a8529270c82b88673943b90d4cd5e5ebbbed /db-functions
parentb7edc550e67393483efe179d5d5cd8bd484a9a05 (diff)
testing cleanup (backported from lukeshu/xbs)
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions8
1 files changed, 8 insertions, 0 deletions
diff --git a/db-functions b/db-functions
index 885e825..bd87064 100644
--- a/db-functions
+++ b/db-functions
@@ -449,3 +449,11 @@ arch_repo_remove() {
REPO_MODIFIED=1
}
+
+arch_svn() {
+ if [ -z "${SVNUSER}" ]; then
+ /usr/bin/svn "${@}"
+ else
+ sudo -u "${SVNUSER}" -- /usr/bin/svn --username "${USER}" "${@}"
+ fi
+}