Skip to content

Commit a04f8ab

Browse files
committed
Hardcode cmake.sh expected shasum
Signed-off-by: David Son <[email protected]>
1 parent ab85d3d commit a04f8ab

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

scripts/install-dep.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,10 @@ arch="$(uname -m)"
2626

2727
# install cmake
2828
cmake_ver="3.24.1"
29+
cmake_expected_shasum="4d9be98ee0ff1c5ad36df0d64892eed3af86a2d2ecdef81a0c78344754e2af44"
2930
if ! command -v cmake &> /dev/null
3031
then
3132
wget https://github.com/Kitware/CMake/releases/download/v"${cmake_ver}"/cmake-"${cmake_ver}"-Linux-"${arch}".sh -O cmake.sh
32-
wget https://github.com/Kitware/CMake/releases/download/v"${cmake_ver}"/cmake-"${cmake_ver}"-SHA-256.txt -O shasums.txt
33-
34-
# Verify integrity
35-
36-
# The sha256sum will come in the format like the following:
37-
# sha256hash filename
38-
# Since we rename the script for convenience purposes,
39-
# we only want to compare hashes to verify file integrity.
40-
cmake_expected_shasum="$(grep "${arch}".sh < shasums.txt | awk '{print $1}')"
4133
cmake_actual_shasum="$(sha256sum cmake.sh | awk '{print $1}')"
4234
if [ "${cmake_expected_shasum}" != "${cmake_actual_shasum}" ]
4335
then

0 commit comments

Comments
 (0)