summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-07-20 21:27:24 -0400
committerJune McEnroe <june@causal.agency>2021-07-20 21:27:24 -0400
commit78a020df8242ae5e4e2ac210bc8d85dc27b43bb6 (patch)
treeac567191ca18da1ace5a416d0c502bb64b4a6a4f
parentFreeBSD: Revert caph_enter(3) call to cap_enter(2) (diff)
downloadcatgirl-78a020df8242ae5e4e2ac210bc8d85dc27b43bb6.tar.gz
catgirl-78a020df8242ae5e4e2ac210bc8d85dc27b43bb6.zip
chroot: Avoid passing paths to -s
Diffstat (limited to '')
-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%% *}" "$@"