diff options
| author | Adam Malczewski <[email protected]> | 2026-06-26 20:52:27 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-26 20:52:27 +0900 |
| commit | 59727d013ce3f1df4b5e97fd0e7c923c6b5a58bb (patch) | |
| tree | 262f22d6325005527fab3acc58308a24460fad1e /notes/opencode-agents.md | |
| parent | ea573f70934a63747dffd4b7ef4c84667b495b1e (diff) | |
| download | dispatch-59727d013ce3f1df4b5e97fd0e7c923c6b5a58bb.tar.gz dispatch-59727d013ce3f1df4b5e97fd0e7c923c6b5a58bb.zip | |
fix(install): run build as user, sudo only on privileged lines
The script previously required sudo for the entire script (id -u check),
which meant bin/build ran as root and created root-owned dist/ files.
On the next build, the normal user couldn't overwrite them (EACCES).
Now the script runs without a sudo prefix: the build step runs as the
normal user (dist/ files are user-owned), and sudo is used only on the
specific lines that write to system directories (/usr/bin, /etc,
/usr/share) or call systemctl.
Diffstat (limited to 'notes/opencode-agents.md')
0 files changed, 0 insertions, 0 deletions
