From a068309cec13e65dff24fc440c9271b97e3ab0a4 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Fri, 7 Feb 2025 16:48:58 +0100 Subject: [PATCH] Make curl in install scripts show errors and exit with non-zero status --- install.sh | 2 +- setup_release.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 38dc573f..f5e8db76 100755 --- a/install.sh +++ b/install.sh @@ -80,7 +80,7 @@ tmpdir="$(mktemp -d)" cd "$tmpdir" # Download release archive. -curl -L -s -O "https://github.com/databricks/cli/releases/download/v${VERSION}/${FILE}.zip" +curl -fsSL -O "https://github.com/databricks/cli/releases/download/v${VERSION}/${FILE}.zip" # Unzip release archive. unzip -q "${FILE}.zip" diff --git a/setup_release.sh b/setup_release.sh index 2feab34c..4f2303ff 100644 --- a/setup_release.sh +++ b/setup_release.sh @@ -42,7 +42,7 @@ esac cd "$RUNNER_TEMP" # Download release archive. -curl -L -s -O "https://github.com/databricks/cli/releases/download/v${VERSION}/${FILE}.zip" +curl -fsSL -O "https://github.com/databricks/cli/releases/download/v${VERSION}/${FILE}.zip" # Unzip release archive. unzip -q "${FILE}.zip" -d .bin