Skip to content

T001: Fix install.sh portability (bash arithmetic + Windows paths)#6

Merged
grobomo merged 1 commit intomainfrom
003-T001-fix-install-portability
Apr 4, 2026
Merged

T001: Fix install.sh portability (bash arithmetic + Windows paths)#6
grobomo merged 1 commit intomainfrom
003-T001-fix-install-portability

Conversation

@grobomo
Copy link
Copy Markdown
Owner

@grobomo grobomo commented Apr 4, 2026

Summary

  • Fix ((var++)) under set -e — post-increment of 0 returns exit code 1, aborting script
  • Convert /c/ Git Bash paths to C:/ for Node.js require() on Windows
  • Exclude archive/ from module count in verify output

Test plan

  • bash install.sh --check passes (was failing before)
  • Full install/uninstall/reinstall cycle works
  • Hook simulation on 3 non-hackathon projects: email-manager, v1-helper, calculator-app
  • spec-gate blocks correctly (no specs/ dir)
  • branch-gate blocks on main, passes on feature branch

- Replace ((var++)) with $((var + 1)) — post-increment of 0 exits
  with code 1 under set -e, aborting the script
- Convert /c/ Git Bash paths to C:/ for Node.js require() on Windows
- Exclude archive/ from module count in verify output
- Tested: full install/uninstall/verify cycle, hook simulation on
  3 non-hackathon projects (email-manager, v1-helper, calculator-app)
@grobomo grobomo merged commit 65955f4 into main Apr 4, 2026
1 check passed
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.

1 participant