Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: fix codacy errors
Browse files Browse the repository at this point in the history
Signed-off-by: Lenin Mehedy <[email protected]>
leninmehedy committed Mar 5, 2024

Verified

This commit was signed with the committer’s verified signature.
Keith-CY Chen Yu
1 parent a5824b7 commit 4a2cd69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/extract-platform.sh
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ echo "Downloading ${BUILD_ZIP_URL}"
echo "Downloading ${CHECKSUM_URL}"
[ -f "${CHECKSUM_FILE}" ] || curl -sSf "${CHECKSUM_URL}" -o "${CHECKSUM_FILE}"
[ $? == 0 ] || exit 1
readonly sum="$(openssl dgst -sha384 ${BUILD_ZIP_FILE} | awk '{print $2}')"
readonly sum="$(openssl dgst -sha384 "${BUILD_ZIP_FILE}" | awk '{print $2}')"
readonly expected_sum="$(awk '{print $1}' < "${CHECKSUM_FILE}")"
if [ "${sum}" != "${expected_sum}" ]; then
echo "SHA sum of ${BUILD_ZIP_FILE} does not match. Aborting."

0 comments on commit 4a2cd69

Please sign in to comment.