Skip to content

Commit

Permalink
Merge pull request crossplane#4911 from plumbis/binary-verification
Browse files Browse the repository at this point in the history
curl should fail on 404
  • Loading branch information
negz authored Oct 26, 2023
2 parents 35b34e8 + b9e1ecd commit 5a90b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ case $OS in
esac

url="https://releases.crossplane.io/${XP_CHANNEL}/${XP_VERSION}/bin/${OS_ARCH}/${BIN}"
if ! curl -sLo crossplane "${url}"; then
if ! curl -sfLo crossplane "${url}"; then
echo "Failed to download Crossplane CLI. Please make sure version ${XP_VERSION} exists on channel ${XP_CHANNEL}."
exit 1
fi
Expand Down

0 comments on commit 5a90b56

Please sign in to comment.