An always-on second brain you talk to. Voice notes in Telegram → typed, linked knowledge in your Obsidian vault. Runs 24/7 on the Claude subscription you already have.
Python ai-agentsai-automationclaudeclaude-codeebbinghausknowledge-graphllmmemory-systemobsidianpersonal-assistantpkmproductivitypythonsecond-braintelegram-botvoice-assistant
fix(setup): read from /dev/tty for curl|bash compatibility
smixs25b696dbcb17
diff --git a/bootstrap.sh b/bootstrap.shindex 3ae22d2..18419ae 100755--- a/bootstrap.sh+++ b/bootstrap.sh@@ -36,11 +36,16 @@ GITHUB_USER="${1:-}"if [ -z "$GITHUB_USER" ]; thenecho -e "${CYAN}Enter your GitHub username (where you forked the repo):${NC}"- read -r GITHUB_USER+ # Read from /dev/tty to handle curl | bash case+ read -r GITHUB_USER < /dev/ttyfiif [ -z "$GITHUB_USER" ]; thenecho -e "${RED}[X] GitHub username is required${NC}"+ echo ""+ echo "Usage:"+ echo " curl -fsSL URL | bash -s YOUR_GITHUB_USER"+ echo " Example: curl -fsSL URL | bash -s smixs"exit 1fidiff --git a/setup.sh b/setup.shindex 06c40ec..cd8c4fb 100755--- a/setup.sh+++ b/setup.sh@@ -129,7 +129,7 @@ check_os() {. /etc/os-releaseif [[ "$ID" != "ubuntu" && "$ID" != "debian" ]]; thenwarn "This script is tested on Ubuntu/Debian. You're running: $ID"- read -p "Continue anyway? (y/N): " -r+ read -p "Continue anyway? (y/N): " -r REPLY < /dev/ttyif [[ ! $REPLY =~ ^[Yy]$ ]]; thenexit 1fi@@ -245,7 +245,7 @@ clone_repository() {if [ -d "$PROJECT_DIR" ]; thenwarn "Project directory already exists: $PROJECT_DIR"- read -p "Remove and re-clone? (y/N): " -r+ read -p "Remove and re-clone? (y/N): " -r REPLY < /dev/ttyif [[ $REPLY =~ ^[Yy]$ ]]; thenrm -rf "$PROJECT_DIR"else@@ -256,7 +256,7 @@ clone_repository() {fiask "Enter your GitHub username (the one where you forked the repo):"- read -r GITHUB_USER+ read -r GITHUB_USER < /dev/ttyif [ -z "$GITHUB_USER" ]; thenerror "GitHub username cannot be empty"@@ -293,7 +293,7 @@ collect_tokens() {# Telegram Bot Tokenwhile true; doask "Telegram Bot Token (from @BotFather):"- read -r TELEGRAM_BOT_TOKEN+ read -r TELEGRAM_BOT_TOKEN < /dev/ttyif validate_telegram_token "$TELEGRAM_BOT_TOKEN"; thensuccess "Token format valid"break@@ -305,7 +305,7 @@ collect_tokens() {# Telegram User IDwhile true; doask "Your Telegram User ID (from @userinfobot):"- read -r TELEGRAM_USER_ID+ read -r TELEGRAM_USER_ID < /dev/ttyif validate_telegram_id "$TELEGRAM_USER_ID"; thensuccess "User ID valid"break@@ -317,7 +317,7 @@ collect_tokens() {# Deepgram API Keywhile true; doask "Deepgram API Key (from console.deepgram.com):"- read -r DEEPGRAM_API_KEY+ read -r DEEPGRAM_API_KEY < /dev/ttyif validate_deepgram_key "$DEEPGRAM_API_KEY"; thensuccess "API Key format valid"break@@ -329,7 +329,7 @@ collect_tokens() {# Todoist API Tokenwhile true; doask "Todoist API Token (from Settings > Integrations > Developer):"- read -r TODOIST_API_KEY+ read -r TODOIST_API_KEY < /dev/ttyif validate_todoist_key "$TODOIST_API_KEY"; thensuccess "API Token format valid"break@@ -346,7 +346,7 @@ create_env_file() {if [ -f "$ENV_FILE" ]; thenwarn ".env file already exists"- read -p "Overwrite? (y/N): " -r+ read -p "Overwrite? (y/N): " -r REPLY < /dev/ttyif [[ ! $REPLY =~ ^[Yy]$ ]]; thensuccess "Keeping existing .env"return@@ -436,7 +436,7 @@ configure_git_remote() {git config user.email "bot@localhost"ask "Do you want to configure GitHub push access? (for auto-sync)"- read -p "(y/N): " -r+ read -p "(y/N): " -r REPLY < /dev/ttyif [[ ! $REPLY =~ ^[Yy]$ ]]; thenwarn "Skipping GitHub push configuration"@@ -451,7 +451,7 @@ configure_git_remote() {echo ""ask "Enter your GitHub Personal Access Token:"- read -rs GITHUB_TOKEN+ read -rs GITHUB_TOKEN < /dev/ttyecho ""if [ -z "$GITHUB_TOKEN" ]; then@@ -463,7 +463,7 @@ configure_git_remote() {if [ -z "$GITHUB_USER" ]; thenask "Enter your GitHub username:"- read -r GITHUB_USER+ read -r GITHUB_USER < /dev/ttyfigit remote set-url origin "https://[email protected]/$GITHUB_USER/agent-second-brain.git"@@ -609,7 +609,7 @@ main() {echo " 5. Set up auto-start service"echo ""- read -p "Ready to start? (Y/n): " -r+ read -p "Ready to start? (Y/n): " -r REPLY < /dev/ttyif [[ $REPLY =~ ^[Nn]$ ]]; thenecho "Setup cancelled."exit 0