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"