Files
Glucksberg 5c3e4ea8b0 fix: skip sudo when already running as root
When running the install script as root (e.g., in a minimal container),
the script would fail if the sudo binary wasn't installed, even though
sudo isn't needed when already running as root.

Add a maybe_sudo() helper that runs commands directly when already root,
and only uses sudo when running as a normal user.

Fixes clawdbot/clawdbot#1933

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 22:42:36 -06:00
..
2026-01-06 20:54:04 +01:00
2026-01-06 19:04:48 +01:00
2026-01-06 20:54:04 +01:00
2026-01-06 20:54:04 +01:00
2026-01-06 19:12:56 +01:00