diff --git a/bootstrap.sh b/bootstrap.sh index e3726ec..78c7439 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -278,9 +278,9 @@ forgejo_ssh_key() { echo "Applications tab -> Manage Access Tokens -> name it, grant 'write:user'" echo "scope (or tick 'user' read+write) -> Generate Token -> copy it now, it's" echo "only shown once." + echo "Paste the token below, then press Enter and then Ctrl-D to finish:" local token - read -r -s -e -p "Forgejo access token (used once, not stored): " token - echo + token=$(cat) token="${token//[[:space:]]/}" if [ -z "$token" ]; then echo "Captured: empty (nothing came through - paste may not have worked in this terminal)"