summaryrefslogtreecommitdiff
path: root/Omni/Ide/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Ide/run.sh')
-rwxr-xr-xOmni/Ide/run.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/Omni/Ide/run.sh b/Omni/Ide/run.sh
index e300fcc..e49d8bd 100755
--- a/Omni/Ide/run.sh
+++ b/Omni/Ide/run.sh
@@ -2,6 +2,8 @@
set -eu
target=$1
shift
-out=$(bild --plan "$target" | jq --raw-output ".\"${target}\".out")
-[[ -f "$out" ]] || bild "$target"
+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" "$@"