Files
obsidian-claude-pkm/scripts
eiszazel c2ee446009 Fix setup.sh failures and improve user experience (#6)
Five improvements to the setup wizard:

1. Relative path handling:
   Convert relative paths to absolute paths after user input to prevent
   failures when `claude init` changes the working directory.

2. Git push error handling:
   Detect actual branch name and show real errors instead of suppressing
   them and falling back to non-existent `master`.

3. Interactive push recovery:
   When push fails (e.g., remote has existing content), offer interactive
   options: force push with confirmation, or skip with manual command.

4. GitHub Actions setup after failed push:
   Only copy workflow files if push succeeds to avoid confusion.

5. OAuth token setup guidance:
   Replace cryptic "Remember to add CLAUDE_CODE_OAUTH_TOKEN" with:
   - Step-by-step instructions
   - Direct link to token documentation
   - Link to repository secrets page
   - Option to open setup page in browser

Co-authored-by: eiszazel <eiszazel@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 13:49:50 -08:00
..