diff options
Diffstat (limited to 'src/init')
| -rwxr-xr-x | src/init | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -6,8 +6,8 @@ # # -set REPO_PERMISSIONS_FILE /etc/repo-permissions -set REPO_VALIDATION_REGEX "^((?:\/[a-zA-Z-]+)+.git)\$" +set _REPO_PERMISSIONS_FILE /etc/repo-permissions +set _REPO_VALIDATION_REGEX "^((?:\/[a-zA-Z-]+)+.git)\$" function createUser set -l userConfig (string split ':' $argv[1]) @@ -37,7 +37,7 @@ function setupRepo set -l repo $parsedConfig[1] # check repo name - set -l matcher (string match -r -g $REPO_VALIDATION_REGEX $repo) + set -l matcher (string match -r -g $_REPO_VALIDATION_REGEX $repo) if test -z $matcher[1] echo "Invalid repo name $repo" return 1 @@ -50,7 +50,7 @@ function setupRepo # write user as allowed into permission file for user in $parsedConfig[2..] - echo "$repoDir:$user" >> $REPO_PERMISSIONS_FILE + echo "$repoDir:$user" >> $_REPO_PERMISSIONS_FILE end # setup repo dir @@ -107,7 +107,7 @@ for userConfig in $users end # Setup repos -echo > $REPO_PERMISSIONS_FILE +echo > $_REPO_PERMISSIONS_FILE for repoConfig in $repos setupRepo "$repoConfig" end |
