mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-18 18:04:17 +00:00
When the binary lived in a root-owned directory, upgrade re-ran the whole command under sudo. The built-in skill download, UI asset cache, and oplog then landed in the user's home as root-owned files, and a later git pull of the skills source failed with "unable to unlink old 'skillshare/SKILL.md': Permission denied". The sudo child now only receives an internal --replace-binary=<version> flag that downloads and swaps the binary. The parent waits for it and does everything else as the invoking user. The needs-password hint shown by the CLI and dashboard drops its sudo prefix, since a fully root upgrade reproduces the same breakage.