summary refs log tree commit diff
path: root/scripts/chroot-prompt.sh
diff options
context:
space:
mode:
authorC. McEnroe2021-07-20 21:27:24 -0400
committerC. McEnroe2021-07-20 21:27:24 -0400
commit78a020df8242ae5e4e2ac210bc8d85dc27b43bb6 (patch)
treeac567191ca18da1ace5a416d0c502bb64b4a6a4f /scripts/chroot-prompt.sh
parentd9388fa2a8672831075fa0e48dff35033347a4af (diff)
chroot: Avoid passing paths to -s
Diffstat (limited to 'scripts/chroot-prompt.sh')
-rw-r--r--scripts/chroot-prompt.sh2
1 files changed, 1 insertions, 1 deletions
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%% *}" "$@"