fix: simplify build process in localagi-install.sh by removing subshell

This commit is contained in:
John Doe
2026-03-04 20:59:54 -05:00
parent 7ece196cff
commit 9a74d59517

View File

@@ -57,13 +57,11 @@ chmod 600 /opt/localagi/.env
msg_ok "Configured LocalAGI" msg_ok "Configured LocalAGI"
msg_info "Building LocalAGI from source" msg_info "Building LocalAGI from source"
( cd /opt/localagi/webui/react-ui &&
cd /opt/localagi/webui/react-ui && bun install &&
bun install && bun run build &&
bun run build && cd /opt/localagi &&
cd /opt/localagi && go build -o /usr/local/bin/localagi
go build -o /usr/local/bin/localagi
) || exit 1
msg_ok "Built LocalAGI from source" msg_ok "Built LocalAGI from source"
msg_info "Creating Service" msg_info "Creating Service"