]> oss.titaniummirror.com Git - repo_shell.git/commitdiff
Scripts tolerate spaces in /etc/repo_shell.cfg
authorR. Steve McKown <rsmckown@gmail.com>
Fri, 28 Sep 2012 16:56:38 +0000 (10:56 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Fri, 28 Sep 2012 19:14:01 +0000 (13:14 -0600)
scripts/gitcreate
scripts/svncreate

index 2c655157aa0a373f0007314318e091b06803fdfe..d570f71b13f3088fad4600e95e9ed8a9f9c8b7c0 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # gitcreate is part of the repo_shell distribution.
 
-source /etc/repo_shell.cfg
+eval $(sed -e 's| ||g' < /etc/repo_shell.cfg)
 if [ -z "$owner" -o -z "$git_root" -o -z "$git_acl_file" ]; then
     echo "$0: please configure /etc/repo_shell.cfg"
 fi
index a1f0ee20e66a4bdacc8339cc235aadd22ce9320a..b696a2bdbf05d12cefc17a55e232ed55710c813d 100755 (executable)
@@ -1,7 +1,8 @@
 #!/bin/sh
 # svncreate is part of the repo_shell distribution.
 
-source /etc/repo_shell.cfg
+
+eval $(sed -e 's| ||g' < /etc/repo_shell.cfg)
 if [ -z "$owner" -o -z "$svn_root" ]; then
     echo "$0: please configure /etc/repo_shell.cfg"
 fi