From fa5fdac033e49520f6f817d4a1f609d9a2735605 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Fri, 10 Apr 2026 08:25:39 +0200 Subject: [PATCH] snap: Set curl --fail flag --- snap/snapcraft.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 59f11db..82a749e 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -70,9 +70,9 @@ parts: override-build: | env | grep "CRAFT\|SNAP" | sort bitcoin_core_version=$(craftctl get version) - curl -LO https://bitcoincore.org/bin/bitcoin-core-${bitcoin_core_version}/SHA256SUMS - curl -LO https://bitcoincore.org/bin/bitcoin-core-${bitcoin_core_version}/bitcoin-${bitcoin_core_version}.tar.gz - curl -LO https://bitcoincore.org/bin/bitcoin-core-${bitcoin_core_version}/bitcoin-${bitcoin_core_version}-${CRAFT_ARCH_TRIPLET_BUILD_FOR}.tar.gz + curl --fail --location --remote-name https://bitcoincore.org/bin/bitcoin-core-${bitcoin_core_version}/SHA256SUMS + curl --fail --location --remote-name https://bitcoincore.org/bin/bitcoin-core-${bitcoin_core_version}/bitcoin-${bitcoin_core_version}.tar.gz + curl --fail --location --remote-name https://bitcoincore.org/bin/bitcoin-core-${bitcoin_core_version}/bitcoin-${bitcoin_core_version}-${CRAFT_ARCH_TRIPLET_BUILD_FOR}.tar.gz echo "c3fe2c20e05847577f633cccab0cc7eb044738f427360f31ef24bdebe79693c8 SHA256SUMS" | sha256sum --check sha256sum --ignore-missing --check SHA256SUMS tar -xvf bitcoin-${bitcoin_core_version}-${CRAFT_ARCH_TRIPLET_BUILD_FOR}.tar.gz @@ -85,7 +85,7 @@ parts: install -m 0755 -D -t $CRAFT_PART_INSTALL/bin bitcoin-${bitcoin_core_version}/bin/bitcoin-tx install -m 0755 -D -t $CRAFT_PART_INSTALL/bin bitcoin-${bitcoin_core_version}/bin/bitcoin-wallet install -m 0755 -D -t $CRAFT_PART_INSTALL/bin bitcoin-${bitcoin_core_version}/bin/bitcoin-util - curl -LO https://raw.githubusercontent.com/bitcoin/bitcoin/v${bitcoin_core_version}/share/pixmaps/bitcoin128.png + curl --fail --location --remote-name https://raw.githubusercontent.com/bitcoin/bitcoin/v${bitcoin_core_version}/share/pixmaps/bitcoin128.png install -m 0644 -D -t $CRAFT_PART_INSTALL/share/pixmaps bitcoin128.png build-packages: - curl