mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
[ubuntu] Refactor bash functions (#9055)
This commit is contained in:
committed by
GitHub
parent
d16bc5f120
commit
503ae89818
@@ -4,17 +4,14 @@
|
||||
## Desc: Helper functions for OS releases
|
||||
################################################################################
|
||||
|
||||
function isUbuntu20
|
||||
{
|
||||
is_ubuntu20() {
|
||||
lsb_release -d | grep -q 'Ubuntu 20'
|
||||
}
|
||||
|
||||
function isUbuntu22
|
||||
{
|
||||
is_ubuntu22() {
|
||||
lsb_release -d | grep -q 'Ubuntu 22'
|
||||
}
|
||||
|
||||
function getOSVersionLabel
|
||||
{
|
||||
get_os_version_label() {
|
||||
lsb_release -cs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user