mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-26 16:48:09 -04:00
Merge pull request #2139 from waja/ci_fix_rawhide
This commit is contained in:
commit
2046ae8557
1 changed files with 3 additions and 0 deletions
3
.github/os_detect.sh
vendored
3
.github/os_detect.sh
vendored
|
|
@ -22,4 +22,7 @@ else
|
|||
return 1
|
||||
fi
|
||||
export distro_id=$(grep '^ID=' $os_release_file|awk -F = '{print $2}'|sed 's/\"//g')
|
||||
export version_id=$(grep '^VERSION_ID=' $os_release_file|awk -F = '{print $2}'|sed 's/\"//g')
|
||||
export platform_id=$(grep '^PLATFORM_ID=' /etc/os-release|awk -F = '{print $2}'|sed 's/\"//g'| cut -d":" -f2)
|
||||
# Fedora dropped PLATFORM_ID: https://fedoraproject.org/wiki/Changes/Drop_PLATFORM_ID?#Drop_PLATFORM_ID
|
||||
if [ -z $platform_id ]; then export platform_id=$(echo ${distro_id:0:1}${version_id}); fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue