mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
After the previous fix the dashboard failed fast but showed the whole CLI transcript ending in "sudo: a password is required", which does not tell the user what to do next. Probe `sudo -n true` before re-executing and return a message naming the terminal command. The server maps that to an `upgrade.needs_sudo` error code so the update dialog and the Doctor page can show a translated sentence in every locale. Also bound the release download with a client timeout; http.Get had none, so a stalled connection could hang an upgrade indefinitely.