summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xOmni/Ide/run.sh4
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" "$@"