openpod

An opencode plugin that spins up a dedicated virtual machine for each session to isolate agent work.
git clone https://unitehenry.com/git/openpod.git
Log | Files | Refs | README

commit 15f86f77b3443af9c36a65e2bfc927c73d7bda43
parent 6a9ada6156013f16915a92703f655a6f89bc5cd7
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sat, 21 Nov 2026 21:39:17 +0000

refactor(install): require root instead of re-executing with sudo

Diffstat:
Minstall/ubuntu.sh | 9+--------
1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/install/ubuntu.sh b/install/ubuntu.sh @@ -10,15 +10,8 @@ log() { printf '\n==> %s\n' "$*"; } warn() { printf '\nwarning: %s\n' "$*" >&2; } die() { printf '\nerror: %s\n' "$*" >&2; exit 1; } -# Re-run with sudo when invoked as a normal user from a script file. if [[ "${EUID}" -ne 0 ]]; then - command -v sudo >/dev/null 2>&1 || die "run this script as root" - - script_path="${BASH_SOURCE[0]:-}" - [[ -n "${script_path}" && -f "${script_path}" ]] || - die "run this script as root: sudo bash install/ubuntu.sh" - - exec sudo -- bash "$(readlink -f "${script_path}")" "$@" + die "run this script as root (for example: sudo bash install/ubuntu.sh)" fi OPENPOD_HOME=""