Skip to content

Fix menu errors, tunneling bugs, and improve README#86

Draft
EricksonAtHome wants to merge 1 commit into
mainfrom
cursor/fix-errors-readme-3b3b
Draft

Fix menu errors, tunneling bugs, and improve README#86
EricksonAtHome wants to merge 1 commit into
mainfrom
cursor/fix-errors-readme-3b3b

Conversation

@EricksonAtHome

Copy link
Copy Markdown
Owner

Summary

Fixes the most common runtime errors reported in issues (#66, #77, #53) and rewrites the README with accurate setup instructions.

Changes

blackeye.sh

  • Accept zero-padded menu input (01, 06, 34) so users are no longer shown Invalid option!
  • Check that sites/<template> exists before starting the PHP server (prevents cd: No such file or directory)
  • Fix Localtunnel mode, which previously launched ngrok and called a missing lt binary
  • Install/use Localtunnel from node_modules via npm install
  • Add startup checks for required tools (php, jq)
  • Run the PHP server in a subshell so the script working directory stays correct
  • Improve ngrok URL detection for newer ngrok-free.app domains
  • Stop deleting .gitignore and other repo files on launch
  • Avoid infinite menu loops when stdin is not interactive

README.md

  • Reorganized with clear requirements, installation, usage, and troubleshooting sections
  • Documents which templates are actually included in this repository
  • Replaces broken markdown/callout syntax and outdated download instructions
  • Adds platform-specific install examples (Debian/Ubuntu, Termux, WSL)

Testing

  • bash -n blackeye.sh passes
  • Verified 01 maps to Instagram and shows a friendly missing-template message instead of crashing
  • Verified piped invalid input exits instead of looping forever
Open in Web Open in Cursor 

- Accept zero-padded menu choices (01, 06, etc.) to fix Invalid option errors
- Validate template folders before starting PHP server
- Fix Localtunnel startup (was incorrectly launching ngrok)
- Add dependency checks for php and jq with clear install hints
- Prevent infinite menu loops in non-interactive shells
- Stop deleting .gitignore on launch
- Rewrite README with requirements, install steps, and bundled templates

Co-authored-by: Erickson Hyppolite Poel <EricksonAtHome@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants