From: R. Steve McKown Date: Fri, 28 Sep 2012 16:56:38 +0000 (-0600) Subject: Scripts tolerate spaces in /etc/repo_shell.cfg X-Git-Tag: 0.5~16 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=repo_shell.git;a=commitdiff_plain;h=d3b6749b37080436b4eeefac3f336a9de892a107 Scripts tolerate spaces in /etc/repo_shell.cfg --- diff --git a/scripts/gitcreate b/scripts/gitcreate index 2c65515..d570f71 100755 --- a/scripts/gitcreate +++ b/scripts/gitcreate @@ -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 diff --git a/scripts/svncreate b/scripts/svncreate index a1f0ee2..b696a2b 100755 --- a/scripts/svncreate +++ b/scripts/svncreate @@ -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