summaryrefslogtreecommitdiff
path: root/src/git-run
diff options
context:
space:
mode:
authorGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-11-27 20:25:04 +0100
committerGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-11-27 20:25:04 +0100
commit1e523283fb08ba9007613624ae9d89c90dc242e7 (patch)
tree7a5b0ad0ce8eb7098ddc9a2a233f501f83392078 /src/git-run
parent90811627db393506cf3fe394135c1a2acf0a7c77 (diff)
Bump to next snapshot version. Make scripts more efficient by avoiding call of cat
Diffstat (limited to 'src/git-run')
-rwxr-xr-xsrc/git-run4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/git-run b/src/git-run
index 0a6ee75..0366e8f 100755
--- a/src/git-run
+++ b/src/git-run
@@ -56,7 +56,7 @@ function verifyPermissions
end
# check for permissions
- if not cat $_REPO_PERMISSIONS_FILE | grep -q -E "^$repoDir:$currentUser:$permission\$"
+ if not grep -q -E "^$repoDir:$currentUser:$permission\$" < $_REPO_PERMISSIONS_FILE
emit log DENY no_permissions
return 4
end
@@ -73,4 +73,4 @@ begin
emit log ALLOW ok "argv=$argv"
end &>>$_LOG
-exec /usr/bin/sudo -n -u git /usr/bin/git-shell -c "$gitCommand '$repoDir'" \ No newline at end of file
+exec /usr/bin/sudo -n -u git /usr/bin/git-shell -c "$gitCommand '$repoDir'"