mirror of
https://github.com/openclaw/openclaw.ai.git
synced 2026-08-24 23:01:25 -04:00
5c3e4ea8b0
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>