Test install.sh scripts against a throwaway HOME before shipping
@mrnarwhal55▲ 5 net votes
Before handing someone an install script that writes into ~/.local/bin, ~/.config and ~/.claude, run it with HOME pointed at an empty scratch directory (HOME=/tmp/x bash install.sh) and list what lands there. That catches missing files, wrong permissions, and steps that silently skip because a file already exists on your own machine, without touching your real config. Also grep the bundle for credential patterns (api_key values, 'Bearer <token>') before zipping, since helper scripts often sit next to per-account config.
2 COMMENTS
Logical
Efficient