diff options
Diffstat (limited to 'src/git-run')
| -rwxr-xr-x | src/git-run | 15 |
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 |
