diff options
| author | Ben Sima <ben@bsima.me> | 2025-11-15 19:11:55 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2025-11-15 19:11:55 -0500 |
| commit | 76ef400b9b1e7fd1909905d0badd4a5a27d0d52e (patch) | |
| tree | e7d7dea248973f8b43b05dbc4428cfa4393ea189 /Omni/Ide | |
| parent | 9b4afe3f7ab98f42194d12cae430b0f7345c4644 (diff) | |
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 <amp@ampcode.com>
Diffstat (limited to 'Omni/Ide')
| -rwxr-xr-x | Omni/Ide/run.sh | 4 |
1 files 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" "$@" |
