From 2c5e903585222d05e28da1f975d297bc472388dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Iwanicki?= Date: Mon, 4 Aug 2025 17:42:38 +0200 Subject: [PATCH] dts-functions: curl: fail if server returns error code e.g. 404 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MichaƂ Iwanicki --- include/dts-functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/dts-functions.sh b/include/dts-functions.sh index 55efd33..a74491b 100644 --- a/include/dts-functions.sh +++ b/include/dts-functions.sh @@ -234,7 +234,8 @@ board_config() { echo "Downloading board configs repository" mkdir -p "$BOARD_CONFIG_PATH" - curl -L -o "$BOARD_CONFIG_PATH.tar.gz" https://github.com/Dasharo/dts-configs/archive/${DTS_CONFIG_REF}.tar.gz >/dev/null 2>>"$ERR_LOG_FILE" + curl -f -L -o "$BOARD_CONFIG_PATH.tar.gz" \ + https://github.com/Dasharo/dts-configs/archive/${DTS_CONFIG_REF}.tar.gz >/dev/null 2>>"$ERR_LOG_FILE" if [ $? -ne 0 ]; then print_error "Failed to download configs." return 1