From d9fc214c094bdb4ae4f7a855a1cc61134a5b519e Mon Sep 17 00:00:00 2001 From: Matthias Lucas Jaros Date: Sun, 19 Oct 2025 11:40:00 +0200 Subject: Finally works with permission checks --- run | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'run') diff --git a/run b/run index 01751a7..061b5a3 100755 --- a/run +++ b/run @@ -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" -- cgit v1.3.1