summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-10-20 09:11:42 +0200
committerGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-10-20 09:11:42 +0200
commitbaaa4d83c98b42a1df98e70b972774ad8f5b8ead (patch)
treeef7803e8119fd6f17f4e80faec8fb1bbc78573a8
parent2b3d58459a21e17d6650c54fc4f357c576ff5133 (diff)
Tightened regex and made tiny variable adjustment. no functional change
-rwxr-xr-xinit2
-rwxr-xr-xrun2
2 files changed, 2 insertions, 2 deletions
diff --git a/init b/init
index 841b704..64ffd85 100755
--- a/init
+++ b/init
@@ -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
diff --git a/run b/run
index be5fed9..ec997ab 100755
--- a/run
+++ b/run
@@ -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