mirror of
https://github.com/claude-did-this/claude-hub.git
synced 2026-02-15 03:31:47 +01:00
This commit reorganizes all scripts in the repository into a more structured directory layout for better maintainability: - Categorizes scripts by functionality (setup, build, aws, runtime, security, utils) - Organizes test scripts into logical categories - Consolidates redundant scripts with unified interfaces - Adds backward compatibility wrappers - Adds detailed SCRIPTS.md documentation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
561 B
Bash
19 lines
561 B
Bash
#!/bin/bash
|
|
|
|
# Script to accept Claude Code permissions non-interactively
|
|
# This needs to be run once to set up the permissions
|
|
|
|
# Create a pseudo-terminal to simulate an interactive session
|
|
expect -c '
|
|
spawn claude --dangerously-skip-permissions --print "test"
|
|
expect {
|
|
"accept" { send "yes\r" }
|
|
"Are you sure" { send "y\r" }
|
|
"Continue" { send "y\r" }
|
|
timeout { send "\r" }
|
|
}
|
|
expect eof
|
|
'
|
|
|
|
# Alternative approach - use yes to auto-accept
|
|
echo "yes" | claude --dangerously-skip-permissions --print "test" || true |