summaryrefslogtreecommitdiffhomepage
path: root/notes/opencode-agents.md
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-26 20:52:27 +0900
committerAdam Malczewski <[email protected]>2026-06-26 20:52:27 +0900
commit59727d013ce3f1df4b5e97fd0e7c923c6b5a58bb (patch)
tree262f22d6325005527fab3acc58308a24460fad1e /notes/opencode-agents.md
parentea573f70934a63747dffd4b7ef4c84667b495b1e (diff)
downloaddispatch-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