Merge "Restore os_CODENAME for old rhel distros"
This commit is contained in:
1 changed files with 1 additions and 1 deletions
@@ -440,7 +440,7 @@ function GetOSVersion {
source /etc/os-release
if [[ "${ID}" =~ (centos|rocky|rhel) ]]; then
os_RELEASE=${VERSION_ID}
os_CODENAME=$(echo $VERSION | grep -oP '(?<=[(])[^)]*')
os_CODENAME=$(echo $VERSION | grep -oP '(?<=[(])[^)]*' || echo 'n/a')
os_VENDOR=$(echo $NAME | tr -d '[:space:]')
else
_ensure_lsb_release
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.