From 2458d754ce90cdb64ccba16a12341e218eabf419 Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 20 Sep 2026 21:31:16 -0700 Subject: [PATCH] fix(deploy): strip the Environment=VAR= prefix, not just the first = --- scripts/deploy-remote.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy-remote.sh b/scripts/deploy-remote.sh index 3d97196..466cbd2 100755 --- a/scripts/deploy-remote.sh +++ b/scripts/deploy-remote.sh @@ -1219,8 +1219,8 @@ deploy_llm_medium() { # image's built-in r4d.so and skips the MXFP4 patches). local quadlet_file="dankserver/frank-medium/quadlet/frank-medium.container" local snap_c snap spec_method quant - snap_c="$(grep -E '^Environment=SNAP=' "$quadlet_file" | head -1 | cut -d= -f2-)" - spec_method="$(grep -E '^Environment=SPEC_METHOD=' "$quadlet_file" | head -1 | cut -d= -f2-)" + snap_c="$(sed -nE 's/^Environment=SNAP=//p' "$quadlet_file" | head -1)" + spec_method="$(sed -nE 's/^Environment=SPEC_METHOD=//p' "$quadlet_file" | head -1)" snap="/home/dank/models${snap_c#/models}" quant="$(python3 -c 'import json,sys;print(json.load(open(sys.argv[1])).get("quantization_config",{}).get("quant_method",""))' "$snap/config.json" 2>/dev/null || true)" [[ -n "$snap_c" ]] || { echo "ERROR: cannot read SNAP from $quadlet_file" >&2; return 1; }