diff options
| author | 2025-10-20 09:11:42 +0200 | |
|---|---|---|
| committer | 2025-10-20 09:11:42 +0200 | |
| commit | baaa4d83c98b42a1df98e70b972774ad8f5b8ead (patch) | |
| tree | ef7803e8119fd6f17f4e80faec8fb1bbc78573a8 | |
| parent | 2b3d58459a21e17d6650c54fc4f357c576ff5133 (diff) | |
Tightened regex and made tiny variable adjustment. no functional change
| -rwxr-xr-x | init | 2 | ||||
| -rwxr-xr-x | run | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -45,7 +45,7 @@ function setupRepo # we assume all repos to be in /srv/repos set -l repoDir srv repos - set -l repoDir /(string join -n '/' $repoDir (string split '/' $repo)) + set repoDir /(string join -n '/' $repoDir (string split '/' $repo)) echo "Setting up repo: $repo" # write user as allowed into permission file @@ -16,7 +16,7 @@ set -l gitCommand $matcher[1] set -l repo $matcher[2] set -l repoDir srv repos set -l repoDir /(string join -n '/' $repoDir (string split '/' $repo)) -cat $REPO_PERMISSIONS | grep -q -E "^$repoDir:$checkUser" +cat $REPO_PERMISSIONS | grep -q -E "^$repoDir:$checkUser\$" or exit 1; # run command |
