summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-05-27 15:19:33 +0000
committerJune McEnroe <june@causal.agency>2021-05-27 15:19:33 +0000
commit5e7c31b637fc7ed82e4f4c81ccd8ca4fe852972f (patch)
tree1ce0285dd25a37d8c7ee411cc6b01a4d35bffe60
parentClarify -H hash option (diff)
downloadcatgirl-5e7c31b637fc7ed82e4f4c81ccd8ca4fe852972f.tar.gz
catgirl-5e7c31b637fc7ed82e4f4c81ccd8ca4fe852972f.zip
Log nick and ssh connection in chroot-prompt
Diffstat (limited to '')
-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" "$@"