Skip to content

Commit

Permalink
Close if statement in download run
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkumar committed Dec 2, 2024
1 parent 25bd6d0 commit 0139a6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ runs:
CRC_ARCH="amd64"
else
CRC_ARCH="amd64"
fi
URL="https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/crc-linux-${CRC_ARCH}.tar.xz"
echo "Downloading $URL"
curl -H user-agent:crc-github-action -L "$URL" -o crc-linux.tar.xz --max-time 300 --fail
SHA256SUM="$(curl -H user-agent:crc-github-action -L ${URL}.sha256 --fail)"
SHA256SUM=$(curl -H user-agent:crc-github-action -L "${URL}".sha256 --fail)
echo "Expected sha256: $SHA256SUM"
echo "Actual sha256: $(sha256sum crc-linux.tar.xz)"
echo "$SHA256SUM crc-linux.tar.xz" | sha256sum -c
Expand Down

0 comments on commit 0139a6c

Please sign in to comment.