Files
runner-images-sangeeth/images/ubuntu/scripts/helpers/os.sh
T

21 lines
422 B
Bash
Raw Normal View History

2020-10-24 23:30:27 +07:00
#!/bin/bash -e
2020-04-02 18:14:11 +05:00
################################################################################
2023-11-22 21:49:23 +01:00
## File: os.sh
## Desc: Helper functions for OS releases
2020-04-02 18:14:11 +05:00
################################################################################
+14
2020-05-26 18:45:48 +03:00
function isUbuntu20
{
lsb_release -d | grep -q 'Ubuntu 20'
2020-04-02 18:14:11 +05:00
}
function isUbuntu22
{
lsb_release -d | grep -q 'Ubuntu 22'
}
2020-04-02 18:14:11 +05:00
function getOSVersionLabel
{
+14
2020-05-26 18:45:48 +03:00
lsb_release -cs
2023-11-22 21:49:23 +01:00
}