about summary refs log tree commit diff
path: root/scripts/chroot-prompt.sh
blob: 2b344263a99ad4170fedb6fd41fea5ebd00070e0 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh
set -eu

printf 'Name: '
read -r nick rest
printf '%s %s\n' "$nick" "$SSH_CLIENT" >>nicks.log
exec catgirl -K -n "$nick" -s "${nick##*/}" -u "${SSH_CLIENT%% *}" "$@"