From d0c810953681425fbd7fb57db7795245b759e065 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 13 Apr 2026 22:28:20 +0300 Subject: [PATCH] Add more harness to the CI scripts (#53816) Fixes image If a parent script with `-euo pipefail` invokes a script, that does not inherit the `-euo pipefail` option. Fix that by adding the flags to the scripts needed and adjust the curl command to fail too. Release Notes: - N/A --- script/download-wasi-sdk | 3 ++- script/upload-nightly | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/script/download-wasi-sdk b/script/download-wasi-sdk index 8cf36ffda187223a4648f1fc763b84919d60470e..888f5d91756ead0ade90d45e96c6bdc0ac734583 100755 --- a/script/download-wasi-sdk +++ b/script/download-wasi-sdk @@ -1,4 +1,5 @@ #!/bin/bash +set -euo pipefail # Check if ./target/wasi-sdk exists if [ ! -d "./target/wasi-sdk" ]; then @@ -49,7 +50,7 @@ if [ ! -d "./target/wasi-sdk" ]; then mkdir -p ./target # Download and extract - curl -L "$WASI_SDK_URL" | tar -xz -C ./target + curl -fL "$WASI_SDK_URL" | tar -xz -C ./target # Rename the extracted directory to wasi-sdk mv "./target/wasi-sdk-${WASI_SDK_VERSION}.0-${ARCH}-${OS}" "./target/wasi-sdk" diff --git a/script/upload-nightly b/script/upload-nightly index 12e7c16ef75dee59f446aebb52f5c840fae5d2f8..09ccc64f4d8e3122baa6988a9313c97955d19379 100755 --- a/script/upload-nightly +++ b/script/upload-nightly @@ -1,6 +1,6 @@ #!/usr/bin/env bash -bash -euo pipefail +set -euo pipefail source script/lib/blob-store.sh bucket_name="zed-nightly-host"