mirror of
https://github.com/actions/runner-images.git
synced 2025-12-31 14:29:16 +08:00
[ubuntu] Cleanup bash scripts (#9076)
* [ubuntu] Cleanup bash scripts * Fix ms-repos lsb_release * Fix install-bicep url * Fix install-nvm
This commit is contained in:
committed by
GitHub
parent
e16b5524ff
commit
1658c2e905
@@ -16,10 +16,12 @@ else
|
||||
# Download script to install CMake
|
||||
download_url=$(resolve_github_release_asset_url "Kitware/CMake" "endswith(\"inux-x86_64.sh\")" "latest")
|
||||
curl -fsSL "${download_url}" -o cmakeinstall.sh
|
||||
|
||||
# Supply chain security - CMake
|
||||
hash_url=$(resolve_github_release_asset_url "Kitware/CMake" "endswith(\"SHA-256.txt\")" "latest")
|
||||
external_hash=$(get_checksum_from_url "$hash_url" "linux-x86_64.sh" "SHA256")
|
||||
use_checksum_comparison "cmakeinstall.sh" "$external_hash"
|
||||
|
||||
# Install CMake and remove the install script
|
||||
chmod +x cmakeinstall.sh \
|
||||
&& ./cmakeinstall.sh --prefix=/usr/local --exclude-subdir \
|
||||
|
||||
Reference in New Issue
Block a user