fix: check /root/.local/bin/uvx first since setup.sh runs as root

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-27 16:02:44 +01:00
parent c7b85fd27b
commit 780007c1d3

View File

@@ -33,7 +33,7 @@ command -v docker >/dev/null 2>&1 || { echo "ERROR: docker not found"; exit 1; }
# Find uvx: prefer the installing user's local bin, fall back to PATH
UVX=""
for candidate in /home/Deeman/.local/bin/uvx /usr/local/bin/uvx "$(command -v uvx 2>/dev/null || true)"; do
for candidate in /root/.local/bin/uvx /home/Deeman/.local/bin/uvx /usr/local/bin/uvx "$(command -v uvx 2>/dev/null || true)"; do
if [ -n "${candidate}" ] && [ -x "${candidate}" ]; then
UVX="${candidate}"
break