summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorC. McEnroe2021-05-27 15:19:33 +0000
committerC. McEnroe2021-05-27 15:19:33 +0000
commit5e7c31b637fc7ed82e4f4c81ccd8ca4fe852972f (patch)
tree1ce0285dd25a37d8c7ee411cc6b01a4d35bffe60 /scripts
parent27c967864c9feaf83b76d51bb9d802b9ac308222 (diff)
Log nick and ssh connection in chroot-prompt
Diffstat (limited to 'scripts')
-rw-r--r--scripts/chroot-prompt.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/chroot-prompt.sh b/scripts/chroot-prompt.sh
index 3b43841..9adff95 100644
--- a/scripts/chroot-prompt.sh
+++ b/scripts/chroot-prompt.sh
@@ -3,4 +3,5 @@ set -eu
 
 printf 'Name: '
 read -r nick rest
+printf '%s %s\n' "$nick" "${SSH_CLIENT:-}" >>nicks.log
 exec catgirl -n "$nick" -s "$nick" "$@"