chroot: Avoid passing paths to -s

weechat-hashes
C. McEnroe 2021-07-20 21:27:24 -04:00
parent d9388fa2a8
commit 78a020df82
1 changed files with 1 additions and 1 deletions

View File

@ -4,4 +4,4 @@ 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%% *}" "$@"
exec catgirl -K -n "$nick" -s "${nick##*/}" -u "${SSH_CLIENT%% *}" "$@"