File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -26,18 +26,10 @@ arch="$(uname -m)"
26
26
27
27
# install cmake
28
28
cmake_ver=" 3.24.1"
29
+ cmake_expected_shasum=" 4d9be98ee0ff1c5ad36df0d64892eed3af86a2d2ecdef81a0c78344754e2af44"
29
30
if ! command -v cmake & > /dev/null
30
31
then
31
32
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}' ) "
41
33
cmake_actual_shasum=" $( sha256sum cmake.sh | awk ' {print $1}' ) "
42
34
if [ " ${cmake_expected_shasum} " != " ${cmake_actual_shasum} " ]
43
35
then
You can’t perform that action at this time.
0 commit comments