From 76ef400b9b1e7fd1909905d0badd4a5a27d0d52e Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 15 Nov 2025 19:11:55 -0500 Subject: Fix run.sh to handle bild --plan JSON output The bild --plan command now outputs progress indicators before JSON. Updated run.sh to use 'tail -1' to extract only the JSON line and fixed the file path check to use the full path. Amp-Thread-ID: https://ampcode.com/threads/T-cc5d29f0-454e-4864-8d7e-1ad69a42afa9 Co-authored-by: Amp --- Omni/Ide/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Omni/Ide/run.sh b/Omni/Ide/run.sh index d4811a4..e49d8bd 100755 --- a/Omni/Ide/run.sh +++ b/Omni/Ide/run.sh @@ -2,8 +2,8 @@ set -eu target=$1 shift -out=$(bild --plan "$target" | jq --raw-output ".\"${target}\".out") -if [[ ! -f "$out" ]]; then +out=$(bild --plan "$target" 2>&1 | tail -1 | jq --raw-output ".\"${target}\".out") +if [[ ! -f "${CODEROOT:?}/_/bin/$out" ]]; then bild "$target" || exit 1 fi exec "${CODEROOT:?}/_/bin/$out" "$@" -- cgit v1.2.3