From 78a020df8242ae5e4e2ac210bc8d85dc27b43bb6 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Tue, 20 Jul 2021 21:27:24 -0400 Subject: chroot: Avoid passing paths to -s --- scripts/chroot-prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/chroot-prompt.sh') diff --git a/scripts/chroot-prompt.sh b/scripts/chroot-prompt.sh index 1e626cf..2b34426 100644 --- a/scripts/chroot-prompt.sh +++ b/scripts/chroot-prompt.sh @@ -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%% *}" "$@" -- cgit 1.4.1-2-gfad0