Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Add more harness to the CI scripts (#53816)

Kirill Bulatovd0c810953681
diff --git a/script/download-wasi-sdk b/script/download-wasi-sdk
index 8cf36ffda18..888f5d91756 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 12e7c16ef75..09ccc64f4d8 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"