summaryrefslogtreecommitdiff
path: root/src/git-run
diff options
context:
space:
mode:
authorGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-11-30 12:27:02 +0100
committerGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-11-30 12:27:02 +0100
commit659af74a7b576ea61f1b5d611f4aec8ace0104c2 (patch)
treee6c7caa3336e5ab4628d887f2914b13cc671a75b /src/git-run
parent5cf42ba3319e56d8a9f8cd9754fbaf5555cc16c2 (diff)
Comments
Diffstat (limited to 'src/git-run')
-rwxr-xr-xsrc/git-run15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/git-run b/src/git-run
index 0366e8f..7d70ef8 100755
--- a/src/git-run
+++ b/src/git-run
@@ -1,13 +1,18 @@
#!/usr/bin/env fish
-# load environment
+# load common environment
source (status dirname)/env
-# global variables
set gitCommand
set repoDir
set currentUser (whoami)
+###
+###
+### functions
+###
+###
+
function log --on-event log
echo "$(date -Is): $argv[1..2] user=$currentUser $argv[3..] ip=$SSH_CONNECTION" >> $_LOG
end
@@ -62,6 +67,12 @@ function verifyPermissions
end
end
+###
+###
+### main
+###
+###
+
# redirect stdout/stderr to file, no information to potential attacker
begin
parseCommand $argv; or exit $status