catboy/scripts/chroot-prompt.sh

8 lines
170 B
Bash

#!/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%% *}" "$@"