diff --git a/sh/aws/claude.sh b/sh/aws/claude.sh index 0d80ca92..9c1caf5c 100755 --- a/sh/aws/claude.sh +++ b/sh/aws/claude.sh @@ -28,5 +28,6 @@ fi # Remote — download and run compiled TypeScript bundle AWS_JS=$(mktemp) trap 'rm -f "$AWS_JS"' EXIT -curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/aws-latest/aws.js" -o "$AWS_JS" +curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/aws-latest/aws.js" -o "$AWS_JS" \ + || { printf '\033[0;31mFailed to download aws.js\033[0m\n' >&2; exit 1; } exec bun run "$AWS_JS" claude "$@" diff --git a/sh/aws/codex.sh b/sh/aws/codex.sh index ab9ece42..3fa2a25d 100755 --- a/sh/aws/codex.sh +++ b/sh/aws/codex.sh @@ -28,5 +28,6 @@ fi # Remote — download and run compiled TypeScript bundle AWS_JS=$(mktemp) trap 'rm -f "$AWS_JS"' EXIT -curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/aws-latest/aws.js" -o "$AWS_JS" +curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/aws-latest/aws.js" -o "$AWS_JS" \ + || { printf '\033[0;31mFailed to download aws.js\033[0m\n' >&2; exit 1; } exec bun run "$AWS_JS" codex "$@" diff --git a/sh/aws/hermes.sh b/sh/aws/hermes.sh index 249d6411..33dd3f20 100644 --- a/sh/aws/hermes.sh +++ b/sh/aws/hermes.sh @@ -28,5 +28,6 @@ fi # Remote — download and run compiled TypeScript bundle AWS_JS=$(mktemp) trap 'rm -f "$AWS_JS"' EXIT -curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/aws-latest/aws.js" -o "$AWS_JS" +curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/aws-latest/aws.js" -o "$AWS_JS" \ + || { printf '\033[0;31mFailed to download aws.js\033[0m\n' >&2; exit 1; } exec bun run "$AWS_JS" hermes "$@" diff --git a/sh/aws/kilocode.sh b/sh/aws/kilocode.sh index 0c5ac4a5..3c00415c 100755 --- a/sh/aws/kilocode.sh +++ b/sh/aws/kilocode.sh @@ -29,5 +29,6 @@ fi # Remote — download and run compiled TypeScript bundle AWS_JS=$(mktemp) trap 'rm -f "$AWS_JS"' EXIT -curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/aws-latest/aws.js" -o "$AWS_JS" +curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/aws-latest/aws.js" -o "$AWS_JS" \ + || { printf '\033[0;31mFailed to download aws.js\033[0m\n' >&2; exit 1; } exec bun run "$AWS_JS" kilocode "$@" diff --git a/sh/aws/openclaw.sh b/sh/aws/openclaw.sh index ef7f88ed..705b4a11 100755 --- a/sh/aws/openclaw.sh +++ b/sh/aws/openclaw.sh @@ -28,5 +28,6 @@ fi # Remote — download and run compiled TypeScript bundle AWS_JS=$(mktemp) trap 'rm -f "$AWS_JS"' EXIT -curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/aws-latest/aws.js" -o "$AWS_JS" +curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/aws-latest/aws.js" -o "$AWS_JS" \ + || { printf '\033[0;31mFailed to download aws.js\033[0m\n' >&2; exit 1; } exec bun run "$AWS_JS" openclaw "$@" diff --git a/sh/aws/opencode.sh b/sh/aws/opencode.sh index fd3c0952..35e84ac1 100755 --- a/sh/aws/opencode.sh +++ b/sh/aws/opencode.sh @@ -28,5 +28,6 @@ fi # Remote — download and run compiled TypeScript bundle AWS_JS=$(mktemp) trap 'rm -f "$AWS_JS"' EXIT -curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/aws-latest/aws.js" -o "$AWS_JS" +curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/aws-latest/aws.js" -o "$AWS_JS" \ + || { printf '\033[0;31mFailed to download aws.js\033[0m\n' >&2; exit 1; } exec bun run "$AWS_JS" opencode "$@" diff --git a/sh/aws/zeroclaw.sh b/sh/aws/zeroclaw.sh index db4779cd..965cbb3e 100644 --- a/sh/aws/zeroclaw.sh +++ b/sh/aws/zeroclaw.sh @@ -28,5 +28,6 @@ fi # Remote — download and run compiled TypeScript bundle AWS_JS=$(mktemp) trap 'rm -f "$AWS_JS"' EXIT -curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/aws-latest/aws.js" -o "$AWS_JS" +curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/aws-latest/aws.js" -o "$AWS_JS" \ + || { printf '\033[0;31mFailed to download aws.js\033[0m\n' >&2; exit 1; } exec bun run "$AWS_JS" zeroclaw "$@" diff --git a/sh/hetzner/claude.sh b/sh/hetzner/claude.sh index 9e9ca914..3c18181d 100755 --- a/sh/hetzner/claude.sh +++ b/sh/hetzner/claude.sh @@ -23,5 +23,6 @@ fi HETZNER_JS=$(mktemp) trap 'rm -f "$HETZNER_JS"' EXIT -curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/hetzner-latest/hetzner.js" -o "$HETZNER_JS" +curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/hetzner-latest/hetzner.js" -o "$HETZNER_JS" \ + || { printf '\033[0;31mFailed to download hetzner.js\033[0m\n' >&2; exit 1; } exec bun run "$HETZNER_JS" claude "$@" diff --git a/sh/hetzner/codex.sh b/sh/hetzner/codex.sh index e2872ee7..3bd743ec 100755 --- a/sh/hetzner/codex.sh +++ b/sh/hetzner/codex.sh @@ -23,5 +23,6 @@ fi HETZNER_JS=$(mktemp) trap 'rm -f "$HETZNER_JS"' EXIT -curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/hetzner-latest/hetzner.js" -o "$HETZNER_JS" +curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/hetzner-latest/hetzner.js" -o "$HETZNER_JS" \ + || { printf '\033[0;31mFailed to download hetzner.js\033[0m\n' >&2; exit 1; } exec bun run "$HETZNER_JS" codex "$@" diff --git a/sh/hetzner/hermes.sh b/sh/hetzner/hermes.sh index 914d8851..2f7a7efb 100755 --- a/sh/hetzner/hermes.sh +++ b/sh/hetzner/hermes.sh @@ -28,5 +28,6 @@ fi # Remote — download and run compiled TypeScript bundle HETZNER_JS=$(mktemp) trap 'rm -f "$HETZNER_JS"' EXIT -curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/hetzner-latest/hetzner.js" -o "$HETZNER_JS" +curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/hetzner-latest/hetzner.js" -o "$HETZNER_JS" \ + || { printf '\033[0;31mFailed to download hetzner.js\033[0m\n' >&2; exit 1; } exec bun run "$HETZNER_JS" hermes "$@" diff --git a/sh/hetzner/kilocode.sh b/sh/hetzner/kilocode.sh index 2dbe66b9..99470fd8 100644 --- a/sh/hetzner/kilocode.sh +++ b/sh/hetzner/kilocode.sh @@ -23,5 +23,6 @@ fi HETZNER_JS=$(mktemp) trap 'rm -f "$HETZNER_JS"' EXIT -curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/hetzner-latest/hetzner.js" -o "$HETZNER_JS" +curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/hetzner-latest/hetzner.js" -o "$HETZNER_JS" \ + || { printf '\033[0;31mFailed to download hetzner.js\033[0m\n' >&2; exit 1; } exec bun run "$HETZNER_JS" kilocode "$@" diff --git a/sh/hetzner/openclaw.sh b/sh/hetzner/openclaw.sh index a030e3f9..3e8ddf18 100755 --- a/sh/hetzner/openclaw.sh +++ b/sh/hetzner/openclaw.sh @@ -23,5 +23,6 @@ fi HETZNER_JS=$(mktemp) trap 'rm -f "$HETZNER_JS"' EXIT -curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/hetzner-latest/hetzner.js" -o "$HETZNER_JS" +curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/hetzner-latest/hetzner.js" -o "$HETZNER_JS" \ + || { printf '\033[0;31mFailed to download hetzner.js\033[0m\n' >&2; exit 1; } exec bun run "$HETZNER_JS" openclaw "$@" diff --git a/sh/hetzner/opencode.sh b/sh/hetzner/opencode.sh index 1dc642fe..c4c6a0d7 100755 --- a/sh/hetzner/opencode.sh +++ b/sh/hetzner/opencode.sh @@ -23,5 +23,6 @@ fi HETZNER_JS=$(mktemp) trap 'rm -f "$HETZNER_JS"' EXIT -curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/hetzner-latest/hetzner.js" -o "$HETZNER_JS" +curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/hetzner-latest/hetzner.js" -o "$HETZNER_JS" \ + || { printf '\033[0;31mFailed to download hetzner.js\033[0m\n' >&2; exit 1; } exec bun run "$HETZNER_JS" opencode "$@" diff --git a/sh/hetzner/zeroclaw.sh b/sh/hetzner/zeroclaw.sh index 71146445..818c50e6 100644 --- a/sh/hetzner/zeroclaw.sh +++ b/sh/hetzner/zeroclaw.sh @@ -23,5 +23,6 @@ fi HETZNER_JS=$(mktemp) trap 'rm -f "$HETZNER_JS"' EXIT -curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/hetzner-latest/hetzner.js" -o "$HETZNER_JS" +curl -fsSL "https://github.com/OpenRouterTeam/spawn/releases/download/hetzner-latest/hetzner.js" -o "$HETZNER_JS" \ + || { printf '\033[0;31mFailed to download hetzner.js\033[0m\n' >&2; exit 1; } exec bun run "$HETZNER_JS" zeroclaw "$@"