diff options
| author | 2025-10-19 11:40:00 +0200 | |
|---|---|---|
| committer | 2025-10-19 11:40:00 +0200 | |
| commit | 9dad4698b3b242460c66b5a6cb373417f666e75c (patch) | |
| tree | f74329a215ed6e86bb21cd055623e3705f92a3ce /run | |
| parent | c00363882dc8413bef47f1de4f268ae4cb500937 (diff) | |
Finally works with permission checks
Diffstat (limited to 'run')
| -rwxr-xr-x | run | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2,7 +2,9 @@ # echo check for permissions set -l USER (whoami) -#cat /srv/repos/permission | grep -E "^ +set matcher (string match -r -g "^.*'(.*)'\$" "$argv") +cat /srv/repos/permissions | grep -q -E "^$matcher[1]:$USER" +or exit 1; # run command /usr/bin/sudo -u git /usr/bin/git-shell -c "$argv" |
